Calling datetime.datetime.utcnow() emits a deprecation warning now.
Python 3.12 reports:
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 patch replaces it with a non-deprecated cross-python implementation.
Calling
datetime.datetime.utcnow()
emits a deprecation warning now. Python 3.12 reports:This patch replaces it with a non-deprecated cross-python implementation.
What kind of change does this PR introduce?
Checklist: