Skip to content

Commit

Permalink
update datetime usage for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 8, 2023
1 parent c3b12d7 commit c3461ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asdf/asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,8 +1336,9 @@ def add_history_entry(self, description, software=None):
elif software is not None:
software = Software(software)

time_ = datetime.datetime.utcfromtimestamp(
time_ = datetime.datetime.fromtimestamp(
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())),
datetime.timezone.utc
)

entry = HistoryEntry(
Expand Down

0 comments on commit c3461ab

Please sign in to comment.