-
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
botocore using deprecated datetime.datetime.utcnow() call #3088
Comments
Hi @paulschreiber, Thanks for reaching out. We're currently tracking this in boto/boto3#3889. Unfortunately, this isn't as straight forward as replacing a function call. We already attempted this in 96ca907 when 3.12 support was released and needed to roll it back due to breaking date serialization changes. We're currently looking at removing the warnings long term in a backwards compatible manner, but don't have a timeline to provide. The |
|
Describe the bug
botocore is using
datetime.datetime.utcnow()
, which is deprecated. It generates this warning:Expected Behavior
No warnings
Current Behavior
DeprecationWarning
Reproduction Steps
n/a
Possible Solution
Use datetime.datetime.now(datetime.UTC)
Additional Information/Context
No response
SDK version used
1.34.2
Environment details (OS name and version, etc.)
Python 3.12.0
The text was updated successfully, but these errors were encountered: