I was going through the release notes of the new Python 3.12 version the other day, and one item caught my attention in the deprecations section:datetime.datetime’s utcnow() and utcfromtimestamp()…
While it would be ideal to have all datetime fields in databases and other data stores be time zone aware, that is certainly not the case. Also, SQLite (and probably others) do not have great support for time zones and it’s recommended to store datetimes as UTC (typically unix timestamps).
Deprecating utcnow was a good idea, but they should have replaced it with naive_utcnow. Oh well.
While it would be ideal to have all datetime fields in databases and other data stores be time zone aware, that is certainly not the case. Also, SQLite (and probably others) do not have great support for time zones and it’s recommended to store datetimes as UTC (typically unix timestamps).
Deprecating
utcnow
was a good idea, but they should have replaced it withnaive_utcnow
. Oh well.Timezones are a disease and should be eradicated. I will die on this hill.
@BeardedGingerWonder will you adapt your time to be 7 hours later?
Thought so.
You thought what?