Improve timezone handling, db models convert naive/timezone-aware

This commit is contained in:
2026-01-24 02:27:57 +01:00
parent 07e37e525c
commit b97eb0404c
4 changed files with 89 additions and 28 deletions

View File

@@ -12,8 +12,8 @@ import ssl
import threading
from . import (
now_utc,
datetime_str,
utc_now,
STATUS_GOOD,
STATUS_NOCHG,
STATUS_BADAUTH,
@@ -373,7 +373,7 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
except ValueError:
return (400, STATUS_BADIP, {})
now = utc_now()
now = now_utc()
ipv4_changed = False
ipv6_changed = False