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 cee306e commit 7cd4dc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The ASDF Standard is at v1.6.0
``asdf.tags.core.Stream``, update block storage support for
Converter and update internal block API [#1537]
- Remove deprecated resolve_local_refs argument to load_schema [#1623]
- Add support for python 3.12 [#1641]

2.15.1 (2023-08-07)
-------------------
Expand Down
4 changes: 2 additions & 2 deletions asdf/asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,8 +1336,8 @@ def add_history_entry(self, description, software=None):
elif software is not None:
software = Software(software)

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

entry = HistoryEntry(
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ classifiers = [
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
dynamic = [
'version',
Expand Down

0 comments on commit 7cd4dc8

Please sign in to comment.