ooni / explorer

OONI Explorer: uncover evidence of internet censorship worldwide
https://explorer.ooni.org
BSD 3-Clause "New" or "Revised" License
64 stars 37 forks source link

Network pages not loading in certain timezones #946

Closed majakomel closed 2 weeks ago

majakomel commented 2 weeks ago

There seems to be a weird bug in the browsers where .setUTCDate() does not work and causes infinite loop in Calendar component. The easiest solution would be to use date-fns for handling dates rather that native js since it seems to be not predictable based on the timezone.

.setUTCDate() works fine in CET:

Screenshot 2024-06-18 at 16 33 09

.setUTCDate() doesn't update in EST and causes an infinite loop:

Screenshot 2024-06-18 at 16 33 23