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
When using botocore 1.36.12 I get a DepricationWarning from Python 3.12.
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).
datetime_now = datetime.datetime.utcnow()
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
No DepricationWarning
Current Behavior
When using botocore 1.36.12 I get a DepricationWarning from Python 3.12.
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).
datetime_now = datetime.datetime.utcnow()
Reproduction Steps
Execute python statement: psycopg.connect()
Possible Solution
Change datetime.datetime.utcnow() statement in datetime.datetime.now(datetime.UTC)
Additional Information/Context
No response
SDK version used
1.36.12
Environment details (OS name and version, etc.)
Python 3.12
The text was updated successfully, but these errors were encountered:
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 utcnow deprecation is currently slated sometime after Python 3.16, so it's at least few years out. We'll work on getting it addressed more timely.
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
When using botocore 1.36.12 I get a DepricationWarning from Python 3.12.
Regression Issue
Expected Behavior
No DepricationWarning
Current Behavior
When using botocore 1.36.12 I get a DepricationWarning from Python 3.12.
Reproduction Steps
Execute python statement: psycopg.connect()
Possible Solution
Change
datetime.datetime.utcnow()
statement indatetime.datetime.now(datetime.UTC)
Additional Information/Context
No response
SDK version used
1.36.12
Environment details (OS name and version, etc.)
Python 3.12
The text was updated successfully, but these errors were encountered: