Login
Roast topics
Find topics
Find it!
From:
Andrea Grandi
(Uncensored)
subscribe
Python: it is now() time to migrate from utcnow()
https://www.andreagrandi.it/posts/python-now-time-to-migrate-from-utcnow/
links
backlinks
Tagged with:
language
changes
datetime
timezone
deprecation
Roast topics
Find topics
Roast it!
Python utcnow() method is not timezone aware, and Python 3.12 is deprecating it. Learn how to migrate your code to use now() instead.