Python 3.12
DeprecationWarning: datetime.datetime.utcnow() is deprecated
datetime.utcnow() is deprecated in Python 3.12 because it returns a naive (timezone-unaware) datetime.
Python 3.12 deprecated utcnow() and utcfromtimestamp() to push code toward timezone-aware datetimes. The warning becomes noise in logs and is scheduled for eventual removal.
Related deadline: Lambda Python 3.9 EOL — 2027-02-01.
The free EOLkits scanner runs in your browser (nothing uploaded) and flags this and related breakages across your IaC and dependency files.
Primary source: https://docs.python.org/3/whatsnew/3.12.html