Skip to content

Commit

Permalink
chore: remove deprecated datetime uses + update lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Apr 11, 2024
1 parent 5beeb5a commit 29df00f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions bento_wes/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import datetime
from datetime import datetime, timezone


__all__ = ["iso_now"]


def iso_now() -> str:
return datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ") # ISO date format
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") # ISO date format
33 changes: 17 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29df00f

Please sign in to comment.