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 Aug 21, 2023
1 parent ac83837 commit cc66fbf
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 @@ -1425,8 +1425,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 cc66fbf

Please sign in to comment.