Slanfan / MTG-Tolaria

8 stars 1 forks source link

Incorrect time #189

Closed d0314 closed 3 years ago

d0314 commented 3 years ago

I am seeing two different times on the Event Information page. Which also does not match the zone in my settings.

n00bc0mtime noobcomtime

Slanfan commented 3 years ago

This is really weird. image

I have Stockholm selected and it has the exact same settings as Amsterdam. Does this make any sense to you @JonnieHedkvist?

{ countryCode: 'SE', countryName: 'Sweden', olson: 'Europe/Stockholm', UTC: '+01:00', DST: '+02:00', zoneCode: 'CET/CEST', zoneName: 'Central European Time' }

{ countryCode: 'NL', countryName: 'Netherlands', olson: 'Europe/Amsterdam', UTC: '+01:00', DST: '+02:00', zoneCode: 'CET/CEST', zoneName: 'Central European Time' }

Slanfan commented 3 years ago

This has to do with DST (Daylight Savings) and the fact that we turned into UTC +2 in the shift of April. This should also be solved since I changed how the UTC TimeZoneOffset is stored. On every login, the device UTC settings is pushed as the timezone offset now.