Store timestamps in UTC and print in localtime
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user