d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Daylight Savings Strikes Again
Add Reply New Topic New Poll
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Mar 26 2016 01:31pm
https://www.reddit.com/r/chess/comments/4bze3m/lichess_latency_200_ms_shot_up_today/

Quote
Sorry about that guys! The site was crashing due to french daylight savings. And I was in a night train when it happened!
When logged in the server was saying:
org.joda.time.IllegalFieldValueException: Value 2 for hourOfDay is not supported: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2016-03-27T02:53:29.301 (Europe/Paris)

So apparently today, "2" is not a hour. Okay.


something at work broke earlier. dont know the details, but apparently day light savings broke our order api. then last night the chess site i go to was dying. lo and behold, daylight savings takes another victim.
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Mar 26 2016 02:08pm
And yet another reason to store Date Time Offsets instead of DateTime. This way you can persist an exact instance of time across datacenters in different timezones without having timezone changes and daylight savings time come into play.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Mar 26 2016 03:29pm
if I ever work at another company, it will be one that is not international.

We messed up storing dates early on in the softwares life, now everything is just fucked
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Mar 26 2016 08:39pm
Quote (Eep @ Mar 26 2016 04:29pm)
if I ever work at another company, it will be one that is not international.

We messed up storing dates early on in the softwares life, now everything is just fucked


It isn't just international. If you are passing a date/time through servers across even just your own country, due to the differences in time zones you can run into issues when they attempt to deserialize using their own system time as reference.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll