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

Transition from 'moment' to 'luxon' due to deprecation #991

Open
majesticio opened this issue Apr 12, 2023 · 0 comments
Open

Transition from 'moment' to 'luxon' due to deprecation #991

majesticio opened this issue Apr 12, 2023 · 0 comments

Comments

@majesticio
Copy link
Contributor

majesticio commented Apr 12, 2023

The moment library has been considered deprecated for a while now. With that in mind, we've decided to switch to the luxon library for our project's date and time handling.

luxon offers several benefits over moment, including:

  • Immutable objects, which reduce the risk of bugs and improve readability
  • Better performance, particularly in parsing and formatting
  • Simpler API with fewer gotchas
  • Built-in support for the Intl API, which provides better localization options

We will be updating the codebase to replace moment with luxon for openaq-fetch.

@majesticio majesticio changed the title Transition from 'moment' to 'luxon 'due to deprecation Transition from 'moment' to 'luxon' due to deprecation Apr 12, 2023
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

No branches or pull requests

1 participant