-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid datetime deprecations in releaseWizard.py (#751)
Python 3.12 deprecates two popular datetime functions that are used throughout the Release Wizard, 'utcnow()' and 'utcfromtimestamp()', resulting in many distracting messages that make the other wizard output hard to read, e.g. ``` DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). ``` This commit updates our 'datetime' usage in accordance with the Python recommendations.
- Loading branch information
1 parent
47446f0
commit f55725f
Showing
1 changed file
with
11 additions
and
10 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