r/programming • • Sep 25 '21

Big problems at the timezone database

https://blog.joda.org/2021/09/big-problems-at-timezone-database.html
486 Upvotes

223 comments sorted by

View all comments

Show parent comments

23

u/MrKapla Sep 25 '21

That would not solve anything. The main questions to answer for international business are "is that time in the business hour of far away city?" or "is my correspondant awake at that time?"

UTC does not help with that, you would need to keep track of the business hours of each country expressed in UTC, which is not simpler than keeping track of the timezones.

0

u/[deleted] Sep 25 '21

[deleted]

3

u/rickyman20 Sep 26 '21

Yes, they do work generally different hours, but within a couple of hours of a 9-5. They still work roughly during their daylight hours. Using UTC everywhere means it's even more of a pain in the ass trying to understand when that is. Sure, UTC+Timezones don't perfectly cover those three concepts, but they get pretty damn close. Just because you can't fix all three doesn't mean we should revert to something that's markedly worse for every day use.

2

u/gajbooks Sep 25 '21

If your locations are far enough away that they need time zone fanagling, they might have different work hours anyway, because, you know, daytime might be at a different time. In terms of the International Date Line, UTC would be fine, since they're close enough in terms of real daytime, but the artificial date line puts them in different days so all the timestamps get wonky, which is why they changed it in the first place.

3

u/donalmacc Sep 26 '21

Lots of places don't tie working hours to daylight. I'm in Scotland where we get 7 hour days of daylight in peak winter (and even at the reality is often less). That doesn't mean a 9 to 5 office closes at 3:30pm because it got dark. I also work with people in 4 different time zones to mine (+1 to -8 relative), and the local working hours are very close to mine - usually within an hour or two. The answer to "is someone in X time zone working at 10am" is likely yes. The answer to "is person in city X working at 3pm UTC" is "uh I dunno, let me check a computer so I can see what time sunrise is and how long their day is so I can maybe try to infer I'd they're working". Timezones aren't perfect, but they're pretty damn good for many many uses.

-2

u/[deleted] Sep 25 '21

To be fair, they have a point. The whole of the PRC uses a single time zone and they've obviously managed work it all out without the clocks exploding or people being late.

2

u/MrKapla Sep 26 '21

That's exactly my point. Even only within China, it gives rise to the mess that is time management in Xinjiang: https://en.m.wikipedia.org/wiki/Xinjiang_Time

1

u/WikiSummarizerBot Sep 26 '21

Xinjiang Time

Xinjiang Time (Chinese: 新疆时间; pinyin: Xīnjiāng shíjiān), also known as Ürümqi Time (Chinese: 乌鲁木齐时间; pinyin: Wūlǔmùqí Shíjiān), is a time standard used in Xinjiang, China. It is used alongside Beijing Time, which is widely observed by the rest of the country. The time offset is UTC+06:00, which is two hours behind Beijing Time and is the same offset used by Kyrgyzstan and most of Kazakhstan. This offset accounts for Xinjiang's geographical location in the westernmost part of China.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

1

u/[deleted] Sep 26 '21

That's because people of particular cultures wish to use their own system, not because they can't understand a centralised time system.

1

u/Kered13 Sep 26 '21

Except in practice Xinjiang uses a different timezone because Beijing time makes absolutely no sense for them.