-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Python 3.12 .utcnow()
DeprecationWarning
#3239
base: develop
Are you sure you want to change the base?
Resolve Python 3.12 .utcnow()
DeprecationWarning
#3239
Conversation
It would be good to get this merged soon, it's been something tracked over on the boto3 issues for almost a year |
@SamRemis, @nateprewitt, @jonathan343 -- Friendly request to review this PR when you have an opportunity. |
@kurtmckee thank you so much for looking into this. This DeprecationWarning transitively via boto has forced my terminal to scrolls 1000s of kilometers over the past year. Since this PR keeps the timezone-less functionality, consider putting |
ALL -- Please do not add junk comments.They contribute nothing and pollute actual discussion if and when it happens. |
This PR resolves the Python 3.12
DeprecationWarning
thrown when botocore callsdatetime.datetime.utcnow()
.@nateprewitt, this PR differs from other attempts posted to this repo by ensuring
datetime
instances are still timezone-unaware:I ran this through CI in my own repo and it passes cleanly.
Fixes boto/boto3#3889.