News for hackers. Stuff that matters.
Re:Infinite loop in macOS Night Shift in the summer near the... by jws on Friday June 28, 2019 @10:26PM (#20310417)
DST rules are just insane. I'm responsible for some code where I just drew the line and 40 some odd people in one of the Antarctic stations are just going to have to live with wrong time part of the year if they ever run my code. I'm not adding another code path and test case just because these people wanted their own special concept of time. I don't remember the pattern, but I think it was maybe a daylight savings time and then an extra one stacked in the middle.
Re:Infinite loop in macOS Night Shift in the summer near the... by petre on Saturday June 29, 2019 @12:09AM (#20310769)
We have endless problems with DST as well. I can't wait for the EU directive that abolishes it. Russia dropped it years ago. We'll still have to support past times and other timezones though.
Re:Infinite loop in macOS Night Shift in the summer near the... by meepso on Saturday June 29, 2019 @05:42AM (#20311674)
I wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.
Re:Infinite loop in macOS Night Shift in the summer near the... by jon-wood on Saturday June 29, 2019 @06:58AM (#20311891)
Most standard libraries still have support for the Julian calendar. That stuff is never going away.
Re:Infinite loop in macOS Night Shift in the summer near the... by jki275 on Sunday June 30, 2019 @08:32AM (#20317858)
Julian calendar is still used by the US Navy. Every supply department office you go into has a conversion table up on the wall.
Re:Infinite loop in macOS Night Shift in the summer near the... by mkl on Saturday June 29, 2019 @08:08AM (#20312119)
I doubt it's "most". Python, Javascript, and C++ don't seem to. The only ones I found that do seem to are C# and Java.
Re:Infinite loop in macOS Night Shift in the summer near the... by inlined on Saturday June 29, 2019 @04:46PM (#20314684)
I just got a ruby gem from someone who actually made tables on the stuff. I made a script that cut out far past and future times to lower loading time from 10m to 30s and figured I could upgrade the gem to leverage an expert’s research as timezones changed (e.g. India changing zones)