Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix datetime.datetime.utcnow() deprecation warning.
Python 3.12 will print the following warning when using `datetime.datetime.utcnow()`: 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). Follow the suggestion, except we don't use `datetime.UTC` to avoid breaking compatibility with Python 3.6.
- Loading branch information