• Jim@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    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.