Skip to content

Commit

Permalink
fix utc timezone on 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Jun 24, 2024
1 parent 18043b1 commit bc9d0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Evtx/BinaryParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def parse_filetime(qword):
return datetime.datetime.min

try:
return datetime.datetime.fromtimestamp(float(qword) * 1e-7 - 11644473600, datetime.UTC)
return datetime.datetime.fromtimestamp(float(qword) * 1e-7 - 11644473600, datetime.timezone.utc)
except (ValueError, OSError):
return datetime.datetime.min

Expand Down

0 comments on commit bc9d0ae

Please sign in to comment.