BE+FE: refactor timezone UTC additional work #1506

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-02-15 16:13:53 +11:00
parent fd71527b09
commit 3587169791
7 changed files with 256 additions and 221 deletions

View File

@@ -534,7 +534,6 @@ def is_timestamps_in_utc(sql) -> bool:
try:
# Get timezone offset in seconds
import conf
from zoneinfo import ZoneInfo
import datetime as dt
now = dt.datetime.now(dt.UTC).replace(microsecond=0)
@@ -754,4 +753,3 @@ def migrate_timestamps_to_utc(sql) -> bool:
except Exception as e:
mylog("none", f"[db_upgrade] ERROR during timestamp migration: {e}")
return False