fix ts2utc

Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-04-28 11:00:19 +02:00
parent 4001ad55f6
commit fb0ddd3a2d
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ def format_dt(d: datetime, seconds = False) -> str:
def ts2utc(timestamp: int) -> datetime:
return datetime.fromtimestamp(timestamp, timezone.utc)
try:
return datetime.fromtimestamp(timestamp, timezone.utc)
except Exception:
return datetime(2000, 1, 1, tzinfo=timezone.utc)
def active() -> list[Extension]:
+1 -1
Submodule wiki updated: d286c08c25...8d8ec98ef5