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

datetime.datetime.utcnow() is deprecated since Python 3.12 #913

Open
Lisias opened this issue Aug 18, 2024 · 0 comments
Open

datetime.datetime.utcnow() is deprecated since Python 3.12 #913

Lisias opened this issue Aug 18, 2024 · 0 comments

Comments

@Lisias
Copy link

Lisias commented Aug 18, 2024

I'm running pywb on Python 3.12 nowadays, and I had noticed the following message on the logs now and then:

Deprecated since version 3.12: Use datetime.now() with UTC instead.

Researching about, I learnt that datetime.datetime.utcnow() is being deprecated - if I understood correctly, naive datetimes are going to be avoided.

Since is unavoidable that utcnow() will be removed from the Python's library, I consider prudent to prevent users from being caught by surprise in the foreseeable future.

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

No branches or pull requests

1 participant