mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
@@ -32,8 +32,10 @@ def format_dt(d: datetime) -> str:
|
||||
|
||||
|
||||
def ts2utc(timestamp: int) -> datetime:
|
||||
return datetime.fromtimestamp(timestamp, timezone.utc)
|
||||
|
||||
try:
|
||||
return datetime.fromtimestamp(timestamp, timezone.utc)
|
||||
except Exception:
|
||||
return "unknown"
|
||||
|
||||
def active():
|
||||
if shared.opts.disable_all_extensions == "all":
|
||||
|
||||
Reference in New Issue
Block a user