Store timestamps in UTC and print in localtime
This commit is contained in:
@@ -316,7 +316,7 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
|
||||
except ValueError:
|
||||
return (400, "badip")
|
||||
|
||||
now = datetime.now()
|
||||
now = datetime.now(datetime.timezone.utc)
|
||||
|
||||
changed = False
|
||||
if ipv4:
|
||||
|
||||
Reference in New Issue
Block a user