Skip to content

Commit

Permalink
Merge pull request #34 from umccr/fix-datetime-utcnow-deprecation
Browse files Browse the repository at this point in the history
Fixed datetime utcnow deprecation
  • Loading branch information
victorskl authored Oct 16, 2024
2 parents e3be501 + fba9d2a commit a238f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libumccr/libdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def get_utc_now_ts():
return int(datetime.utcnow().replace(tzinfo=timezone.utc).timestamp())
return int(datetime.now(timezone.utc).replace(tzinfo=timezone.utc).timestamp())


def parse_last_modified_date(date_raw: str) -> datetime:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
python_requires=">=3.9",
extras_require={
"dev": [
"pipdeptree",
Expand Down

0 comments on commit a238f7c

Please sign in to comment.