Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calendar in all timezones #944

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Fix calendar in all timezones #944

merged 2 commits into from
Jun 19, 2024

Conversation

majakomel
Copy link
Contributor

@majakomel majakomel commented Jun 18, 2024

Replaces vanilla js date calculations with date-fns due to weird behaviour in some timezones:

.setUTCDate() works fine in CET
Screenshot 2024-06-18 at 16 33 09

.setUTCDate() doesn't update in EST and causes an infinite loop when backfilling the calendar data and comparing the dates
Screenshot 2024-06-18 at 16 33 23

Closes #946

@majakomel majakomel self-assigned this Jun 18, 2024
Copy link

vercel bot commented Jun 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 10:44pm

@majakomel majakomel merged commit 32d2d8c into master Jun 19, 2024
3 checks passed
@majakomel majakomel deleted the calendar branch June 19, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network pages not loading in certain timezones
2 participants