Commit f0a41d4d authored by Kantz's avatar Kantz
Browse files

zeitzone auch fü started und finished angepasst

parent 730f9486
...@@ -2,7 +2,8 @@ from __future__ import annotations ...@@ -2,7 +2,8 @@ from __future__ import annotations
import time import time
from dataclasses import dataclass from dataclasses import dataclass
from datetime import datetime, timezone from datetime import datetime
from zoneinfo import ZoneInfo
from typing import Any, Callable, List, TypeVar from typing import Any, Callable, List, TypeVar
import app.config as config import app.config as config
...@@ -39,7 +40,7 @@ def is_new_chat(messages: list[dict]) -> bool: ...@@ -39,7 +40,7 @@ def is_new_chat(messages: list[dict]) -> bool:
# --- # ---
def _utc_now_iso() -> str: def _utc_now_iso() -> str:
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") return datetime.now(ZoneInfo("Europe/Berlin")).strftime("%Y-%m-%dT%H:%M:%SZ")
def _start_timing() -> tuple[str, float]: def _start_timing() -> tuple[str, float]:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment