Skip to content

Commit

Permalink
Fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Feb 26, 2023
1 parent 5dc46df commit f9c1280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive_query_log/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from datetime import datetime
from datetime import datetime, timezone
from functools import cached_property
from hashlib import md5
from pathlib import Path
Expand Down Expand Up @@ -67,7 +67,7 @@ def datetime(self) -> datetime:
"""
Snapshot timestamp as a ``datetime`` object.
"""
return datetime.fromtimestamp(self.timestamp)
return datetime.fromtimestamp(self.timestamp, timezone.utc)

@cached_property
def archive_timestamp(self) -> str:
Expand Down

0 comments on commit f9c1280

Please sign in to comment.