Skip to content

Commit

Permalink
Fixed datetime utcnow deprecation
Browse files Browse the repository at this point in the history
* Bumped minimum version required to Python3.9
  • Loading branch information
victorskl committed Oct 16, 2024
1 parent e3be501 commit fba9d2a
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 fba9d2a

Please sign in to comment.