You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module botocore.auth.py uses the function datetime.datetime.utcnow() which is depreacated and throws the DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Expected Behavior
The warning should not be raised
Current Behavior
The DeprecationWarning is being raised
Reproduction Steps
Using last versions botocore and launching python with options -Wa raises the warning
Possible Solution
Replace datetime.datetime.utcnow() with datetime.datetime.now(datetime.UTC) as described in the warning itself
Additional Information/Context
No response
SDK version used
1.34.122
Environment details (OS name and version, etc.)
linux, ubunut
The text was updated successfully, but these errors were encountered:
The team is aware of this issue and working on addressing the warnings. These deprecations won't cause impact currently beyond the warnings. The required changes are not fully backwards compatible for existing usage. We'll be prioritizing a more robust fix in an upcoming release.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
The module botocore.auth.py uses the function datetime.datetime.utcnow() which is depreacated and throws the DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Expected Behavior
The warning should not be raised
Current Behavior
The DeprecationWarning is being raised
Reproduction Steps
Using last versions botocore and launching python with options -Wa raises the warning
Possible Solution
Replace datetime.datetime.utcnow() with datetime.datetime.now(datetime.UTC) as described in the warning itself
Additional Information/Context
No response
SDK version used
1.34.122
Environment details (OS name and version, etc.)
linux, ubunut
The text was updated successfully, but these errors were encountered: