-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove deprecated datetime uses + update lockfile
- Loading branch information
1 parent
5beeb5a
commit 29df00f
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.