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

Remove use of datetime.utcnow() #799

Open
adamchainz opened this issue Oct 4, 2024 · 0 comments · May be fixed by #800
Open

Remove use of datetime.utcnow() #799

adamchainz opened this issue Oct 4, 2024 · 0 comments · May be fixed by #800

Comments

@adamchainz
Copy link
Contributor

adamchainz commented Oct 4, 2024

Originally attempted back in #368 but the change was reverted in #400. On Python 3.12, datetime.utcnow() now triggers this warning:

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).

Time to actually migrate.

@adamchainz adamchainz linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant