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

Display all times in UTC, including in Chart.js #665

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Conversation

fancyremarker
Copy link
Member

@fancyremarker fancyremarker commented Dec 22, 2023

@neurosnap : this required swapping out chartjs-adapter-date-fns and replacing it with chartjs-adapter-luxon, which also introduces a dependency on luxon. I don't love adding dependencies, but I believe that time zone support is a must for a date formatting library, so I think this is a better approach than implementing time zone support ourselves on top of a library.

See:

@joeclayallday joeclayallday merged commit b767c68 into main Dec 23, 2023
@joeclayallday joeclayallday deleted the fix-utc-times branch December 23, 2023 00:04
neurosnap added a commit that referenced this pull request Jan 3, 2024
Since we need luxon for chart.js to format timezone dates properly, we
might as well replace date-fns with luxon.

References: #665
neurosnap added a commit that referenced this pull request Jan 3, 2024
Since we need luxon for chart.js to format timezone dates properly, we
might as well replace date-fns with luxon.

References: #665
neurosnap added a commit that referenced this pull request Jan 3, 2024
Since we need luxon for chart.js to format timezone dates properly, we
might as well replace date-fns with luxon.

References: #665
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.

2 participants