Re:Australia/Lord_Howe is the weirdest timezone
by jandrese on Wednesday October 30, 2024 @12:19PM
(#41996913)
I worked with a group of people once who just didn't care about timezones. All (ok, most) clocks were set to local time, but with some random timezone, about half of the time it was GMT, and 2/3 of the remainder were our actual timezone, but the rest were totally random. I had to write a "figure out what the time actually is" routine in my code because it was such a pervasive problem.
Re:Australia/Lord_Howe is the weirdest timezone
by grishka on Wednesday October 30, 2024 @01:40PM
(#41998036)
I ended up doing kinda the same. Our API already had a method to retrieve the current unixtime on the server, which I used, together with the user-set timezone, to figure out the UTC offset that the user actually meant to set by adjusting their clock.
Re:Australia/Lord_Howe is the weirdest timezone
by lxgr on Wednesday October 30, 2024 @12:25PM
(#41996993)
This makes me wonder: Should NTP servers broadcast the tz database...? (And should the tz database support a stable but turing-complete scripting/bytecode language?)
Instead of picking the timezone with the correct offset and no DST, many people would adjust the time itself so the wrong timezone and the wrong unixtime cancel each other out so the clock "looks right". Not fun when you're doing math with timestamps, some of which are local and some come from the server.