-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Using Z in the format pattern (using time zone) throws an error #1473
Comments
Hi @micaelmbagira! Docs seem to be slightly out of date.
Following should work
See repro here - https://codesandbox.io/embed/adoring-hermann-yb7fx We'll update the docs. |
still wrong as of today: https://date-fns.org/v2.12.0/docs/Time-Zones |
@masbaehr sorry I must have missed a pull-request from you. |
@masbaehr weird, I couldn't find it so I did it myself ¯\(ツ)/¯ |
Haha of course you did not find it - there is none. I just mentioned it as i came across it while switching from moment to date-fns ;D since the pattern is "Z" there |
Ok, I see. You just sounded like someone who's tried to help but got ignored. |
I am running this example taken from https://date-fns.org/v2.4.1/docs/Time-Zones
and I get the following error
Even though
Z
is in the list of available tokens: https://date-fns.org/v2.4.1/docs/formatThe text was updated successfully, but these errors were encountered: