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

replaces Moment with Luxon in components in ilios-common - part 2 #7666

Merged
merged 6 commits into from
Feb 29, 2024

Conversation

stopfstedt
Copy link
Member

@stopfstedt stopfstedt commented Feb 28, 2024

refs ilios/ilios#5193

contains a minor change in date formatting in the "Session Overview" component - the "last updated" date now displays without padding on day and month info on the given date-time.
Luxon localizes this date differently from Moment, for reasons.

The alternative would be to force a specific format, independent of localization, which surmounts to a loss of functionality.

image

@stopfstedt stopfstedt force-pushed the more_moment_with_luxon_replacement branch from c5592ef to de3c4d5 Compare February 28, 2024 21:35
Luxon formats localized dates slightly different than Moment - day and
month are unpadded numbers in Luxon.
@stopfstedt stopfstedt force-pushed the more_moment_with_luxon_replacement branch from a22fd68 to 8e9d89e Compare February 28, 2024 22:52
had to convert the datetime test vectors to proper ISO format, since
that's what is expected as input.
@stopfstedt stopfstedt force-pushed the more_moment_with_luxon_replacement branch 2 times, most recently from c0b5304 to 60357d7 Compare February 29, 2024 00:27
@stopfstedt stopfstedt requested a review from jrjohnson February 29, 2024 00:42
@stopfstedt stopfstedt marked this pull request as ready for review February 29, 2024 00:42
@jrjohnson jrjohnson merged commit 61b2675 into ilios:master Feb 29, 2024
22 of 30 checks passed
@stopfstedt stopfstedt deleted the more_moment_with_luxon_replacement branch March 1, 2024 19:34
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