pywb icon indicating copy to clipboard operation
pywb copied to clipboard

`datetime.datetime.utcnow()` is deprecated since Python 3.12

Open Lisias opened this issue 1 year ago • 2 comments

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.

Lisias avatar Aug 18 '24 05:08 Lisias