-
Notifications
You must be signed in to change notification settings - Fork 147
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
Netlify app: format pattern "a..aa" returns "AM..AM" #5081
Comments
benomatis
added a commit
to benomatis/apps
that referenced
this issue
Oct 7, 2023
Replace date-fns format pattern `a..aa` with `a` Fixes contentful#5081
This is a misunderstanding of the doc: "a..aa" is a notation meant to say "a" till "aa" (ie. either "a", or "aa"). Now |
whitelisab
pushed a commit
that referenced
this issue
Dec 28, 2023
Replace date-fns format pattern `a..aa` with `a` Fixes #5081
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In date-fns v2.28.0, despite what's indicated in the format patterns list of the documentation, the format pattern
a..aa
returnsAM..AM
instead of justAM
. It looks like using simplya
is what returnsAM
.I reported this on
date-fns
but you might want to correct it here to usea
not having to wait fordate-fns
to fix it - not sure if that's the right approach: date-fns/date-fns#3539apps/apps/netlify/frontend/src/sidebar/message-processor.js
Line 80 in 73d8caa
The text was updated successfully, but these errors were encountered: