Store timestamps in UTC and print in localtime

This commit is contained in:
2026-01-22 21:56:12 +01:00
parent 4bcd9f2a7f
commit 9c7f4dfd1a
3 changed files with 13 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ def cleanup_expired(app):
Returns:
Number of expired hostnames processed.
"""
now = datetime.now()
now = datetime.now(datetime.timezone.utc)
expired_count = 0
for hostname in Hostname.select().join(User).where(