Open kfrydel opened 11 months ago
This fixes #934. utcnow function, starting from Python 3.12 is deprecated: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
Thus, this commit turns usages of utcnow() into now(UTC).
This addresses the issue described in #934
The solution is based on the suggestion from official Python docs: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
This fixes #934. utcnow function, starting from Python 3.12 is deprecated: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
Thus, this commit turns usages of utcnow() into now(UTC).
Description
The feature or problem addressed by this PR
This addresses the issue described in #934
What your changes do and why you chose this solution
The solution is based on the suggestion from official Python docs: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
Checklist