datetime.utcnow is deprecated in Python 3.12
tirkarthi opened this issue · comments
aiobotocore/aiobotocore/signers.py
Line 262 in 5ce00b8
Ref : python/cpython#103857
datetime.datetime’s utcnow() and utcfromtimestamp() are deprecated and will be removed in a future version. Instead, use timezone-aware objects to represent datetimes in UTC: respectively, call now() and fromtimestamp() with the tz parameter set to datetime.UTC. (Contributed by Paul Ganssle in gh-103857.)
that comes from botocore: https://github.com/boto/botocore/blob/1.29.161/botocore/signers.py#L593 please log there
btw, didn't follow the instructions in logging an issue :)
Sorry, I right clicked on the code line in GitHub UI and selected reference in new issue which seems to not show any template. I will check on the other repo. Thanks.
interesting, sounds like a github bug, here's the template btw: https://github.com/aio-libs/aiobotocore/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=