66
submitted 11 months ago by marsokod@lemmy.world to c/python@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] jim@programming.dev 7 points 11 months 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.

[-] BeardedGingerWonder@feddit.uk 9 points 11 months ago

Timezones are a disease and should be eradicated. I will die on this hill.

[-] twoframesperminute@mastodon.social -4 points 11 months ago

@BeardedGingerWonder will you adapt your time to be 7 hours later?

Thought so.

[-] BeardedGingerWonder@feddit.uk 2 points 11 months ago

You thought what?

load more comments (6 replies)
load more comments (6 replies)
this post was submitted on 18 Nov 2023
66 points (98.5% liked)

Python

6290 readers
15 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS