this post was submitted on 18 Nov 2023
66 points (98.5% liked)

Python

6405 readers
9 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
you are viewing a single comment's thread
view the rest of the comments
[–] jim 7 points 1 year ago (1 children)

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.

[–] [email protected] 9 points 1 year ago (3 children)

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

[–] [email protected] 8 points 1 year ago (1 children)

Agreed. I'm an American and wish we could just all be on UTC. Yeah, my workday would start at like 0200, but that's a sacrifice I'm willing to make.

[–] [email protected] -1 points 1 year ago (1 children)

Everyone on UTC sounds like such a great idea that would solve so many problems.

Unfortunately humans are so dependent on daylight and the day night cycle that it will never work

[–] [email protected] 4 points 1 year ago (1 children)

@Sigmatics you can have everyone on the same time zone and still have different day/night cycles. It just means you have to get up at 14:00 and go to sleep at 5:00. The big problem with this is that the date-switch happens for everyone at the same time, which means you might have breakfast on Thursday and lunch on Friday. That makes it terribly inconvenient, and therefore probably unviable.

[–] [email protected] -1 points 1 year ago (1 children)

Yeah that's kind of what I meant. People like their days to start at the same time every day. We are creatures of habit.

[–] [email protected] 1 points 1 year ago

@Sigmatics Habits can be unlearned over a few generations. Doesn't mean in becomes practical all if a sudden. It's just messy to say "I'll do this tomorrow" when "tomorrow" might mean "before I go to bed".

"See you Monday!"
"Eh, before or after sleep on Monday?"

It's just not viable. It requires us to think differently about what a date is, returning the original issue: different people living at different dates.

[–] [email protected] 3 points 1 year ago

I agree. I hate timezones so much

[–] [email protected] -4 points 1 year ago (1 children)

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

Thought so.

[–] [email protected] 2 points 1 year ago

You thought what?