Skip to content
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

DeprecationWarning: datetime.datetime.utcnow() #4496

Open
1 of 2 tasks
geekharsh opened this issue Apr 3, 2025 · 0 comments
Open
1 of 2 tasks

DeprecationWarning: datetime.datetime.utcnow() #4496

geekharsh opened this issue Apr 3, 2025 · 0 comments
Assignees
Labels
config feature-request This issue requests a feature. p3 This is a minor priority issue

Comments

@geekharsh
Copy link

Describe the feature

Support for new datetime method support i.e datetime.now(timezone.utc)

Use Case

Getting error in while using boto3 and botocore

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).
dt = datetime.utcnow()

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

1.37.26

Environment details (OS name and version, etc.)

mac

@geekharsh geekharsh added feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged. labels Apr 3, 2025
@adev-code adev-code self-assigned this Apr 7, 2025
@adev-code adev-code added config p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config feature-request This issue requests a feature. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

2 participants