-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle datetime.utcnow() deprecation
Following the deprecation of utcnow in Python 3.12, we add a tzinfo timezone argument to date utils. For now this defaults to None so as not to break comparisons against existing naive datetimes. If and when naive datetimes are fully deprecated in a future Python release, we can change the default argument for tzinfo from None to timezone.utc.
- Loading branch information
Showing
1 changed file
with
40 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