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

Add Luxon, refactor date parsing/formatting #423

Merged
merged 3 commits into from
Aug 14, 2023
Merged

Add Luxon, refactor date parsing/formatting #423

merged 3 commits into from
Aug 14, 2023

Conversation

smartspot2
Copy link
Member

Closes #367

Default datetime support in JS is horrible, so Luxon was added to make it a lot easier to manage.

Further, there are some serializers which format dates in the response, which is bad convention, as the backend should provide dates in a standardized format (i.e. ISO), letting the frontend do the formatting; parsing should be made as easy as possible. This was changed in this PR so that serializers give all date/datetime values in ISO.

@smartspot2 smartspot2 added the enhancement New feature or request label Jul 17, 2023
@smartspot2 smartspot2 self-assigned this Jul 17, 2023
@ericyche
Copy link
Contributor

o this is cool wow

@cypress
Copy link

cypress bot commented Jul 17, 2023

Passing run #157 ↗︎

0 78 0 0 Flakiness 0

Details:

Add Luxon, refactor date parsing/formatting
Project: csm_web Commit: 2f392f5b50
Status: Passed Duration: 03:04 💡
Started: Aug 5, 2023 6:42 AM Ended: Aug 5, 2023 6:45 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@ericyche ericyche requested a review from noortor July 17, 2023 01:50
@smartspot2 smartspot2 force-pushed the feat/luxon branch 3 times, most recently from 4df9fc7 to ab0fc7a Compare July 21, 2023 18:48
Use luxon for enrollment automation implementation

Update resource aggregation date display
@ericyche
Copy link
Contributor

ericyche commented Aug 6, 2023

i test and i like date format.

@ericyche ericyche requested a review from edwardneo August 6, 2023 02:00
Copy link
Contributor

@edwardneo edwardneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good luxon migration :D

@smartspot2 smartspot2 merged commit 895b9db into master Aug 14, 2023
14 checks passed
@smartspot2 smartspot2 deleted the feat/luxon branch August 14, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better datetime frontend library
3 participants