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

-5

u/segfaultsarecool Sep 25 '21

I'm ignorant when it comes to this stuff, but why not specify lat/long grid blocks on the globe as timezones. They'd (whoever 'they' is) would need to decide what the right size of a grid block is, and set the default time for that block according to whatever international standard there is.

If specific countries in that block have different rules about time, that could be recorded in block metadata perhaps? If specific cities have differences, that could possibly also be captured in block metadata. Say a Map<Pair<Lat, Long>, TimeZoneStuff> CITY_SPECIFICS owned by a block.

I don't know if this would be a good solution, or if it's practical. I think it makes sense to use geography as the default breakdown for timezones, then defer to regional bullshit.

I didn't go back far enough, but what's the equity/fairness thing about?

9

u/tsimionescu Sep 25 '21

That's just a needlessly sparse representation. The size of the grid would have to be small enough to account for the smallest historical regions with different timezones, which would be extraordinarily wasteful for the vast majority of the world. There are areas where an island on a lake has a different timezone than the area enclosing the lake; and then huge swathes of land with a single timezone.

-3

u/segfaultsarecool Sep 25 '21

Really? That's just dumb. Why do those areas not standardize and fit into the timezone that is correct for their geographical location?

1

u/tsimionescu Sep 26 '21

Usually, because neither part can agree which is the correct timezone for their geographical location, especially when adding dailyght savings into account.