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

Note that the day header hook receives a Date generated in UTC. #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjkip
Copy link

@rjkip rjkip commented Jul 3, 2024

I used the Intl facility to render day headers in users' locales. This renders dates in the user's time zone, whereas the provided Date was created in UTC. This caused a surprise for users "west" of UTC, where the day header rendered a day previous. People living in +13:00 would have seen the day after!

Happy to make any adjustments to the changes or the commit message!

For day headers that do not represent specific dates, like weekdays in a month view, the provided `Date` instant must be interpreted as UTC. If not done so, day headers may show the wrong weekday.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant