We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecbc273 commit 4a495c2Copy full SHA for 4a495c2
src/ingest.py
@@ -31,7 +31,7 @@ def iso_from_epoch(ts):
31
if ts is None or ts == 0:
32
return None
33
try:
34
- return datetime.datetime.fromtimestamp(float(ts), datetime.UTC).replace(microsecond=0).isoformat()
+ return datetime.datetime.fromtimestamp(float(ts), datetime.timezone.utc).replace(microsecond=0).isoformat()
35
except Exception:
36
37
0 commit comments