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

Use native browser APIs and Luxon instead of Moment #612

Merged
merged 22 commits into from
Sep 21, 2023
Merged

Conversation

jelhan
Copy link
Owner

@jelhan jelhan commented Aug 19, 2023

Removes usage of Moment.js and replaces it with native APIs, especially Intl.DateTimeFormat, and Luxon if relying on native APIs only is not feasible.

Croodle recently had a critical bug caused by outdated time zone information used by Moment (#573). Using Intl.DateTimeFormat will prevent such bugs in the future as time zone information are updated with the browser. As a side effect Croodle's bundle size is reduced by ~12KB after gzip if not needing to include time zone information.

The presentation of dates may slightly change depending on browser and locale. If any change affects the user experience negatively, we can address that in follow-up merge requests.

@jelhan jelhan changed the title WIP: replace Moment with Luxon in Ember Power Calendar WIP: Use native browser APIs and Luxon instead of Moment Aug 20, 2023
@jelhan jelhan added internal and removed breaking labels Aug 20, 2023
@jelhan jelhan changed the title WIP: Use native browser APIs and Luxon instead of Moment Use native browser APIs and Luxon instead of Moment Sep 21, 2023
@jelhan jelhan merged commit 2a4b1f8 into master Sep 21, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant