dcaslin / d2-checklist

Source for www.d2checklist.com, written in Angular and using the Bungie API
https://www.d2checklist.com/
MIT License
91 stars 24 forks source link

Legendary lost sector schedule is out of sync #446

Closed ScriptedBot closed 2 years ago

ScriptedBot commented 3 years ago

It currently shows the next day's rotation i.e. its running ahead by 24 hours.

dcaslin commented 3 years ago

Looks correct to me right now? Was there a particular time of day when you saw this? (timezone issues have vexed me on this)

ScriptedBot commented 3 years ago

It still shows incorrectly for me

d2checklist-sync .

ScriptedBot commented 3 years ago

Been observing this regularly whenever I check at multiple times of the day - just after Bungie daily reset or later in the day. Even checked around UTC date crossover. Will update once I get to check around local date crossover.

dcaslin commented 3 years ago

It shows correct for me right now, 10PM EST. That makes me think this might be a time zone issue. What timezone are you in?

image

ScriptedBot commented 3 years ago

I am in IST (UTC+5:30). The changeover is happening at the right time i.e. at 10:30 pm local time but the change shows the next day's rotation.

dcaslin commented 2 years ago

It was Daylight savings time related. turns out date-fns differenceInDays is DST aware and I really didn't want it to be. This will be fixed in 15.6.0. As always, timezone related issues keep life interesting!