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

Replace Moment.js by Day.js #44

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Replace Moment.js by Day.js #44

merged 1 commit into from
Mar 9, 2022

Conversation

KristjanESPERANTO
Copy link
Owner

Why the replacement? Moment.js is legacy.

Why Day.js? It is an active project and has a similar API like Moment.js.

Why not Luxon? Luxon can't do "in one minute" or "in a few seconds" - it does it like this: "in 1 minute".
DateTime.now().plus({ seconds: 62 }).toRelative({ locale: "en", round: true})

Why not date-fns? I had problems switching to it. The documentation does not seem as good as day.js.

@KristjanESPERANTO KristjanESPERANTO merged commit 4708e4c into main Mar 9, 2022
@KristjanESPERANTO KristjanESPERANTO deleted the dayjs branch March 13, 2022 10:23
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.

None yet

1 participant