We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let say I have some date in a variable called dateObject (1 July 2019 05:00:00 UTC), then doing:
formatToTimeZone(dateObject, 'DDHHmm[Z] MMM YYYY', { timeZone: 'UTC' })
should give:
010500Z Jul 2019
but instead gives:
010500+00:00 Jul 2019
I thought doing [Z] escapes the Z like the M in [GMT]????
The text was updated successfully, but these errors were encountered:
I have the same problem and it's really annoying 😥
Sorry, something went wrong.
That's my use case too, however it seems Z is indeed not escaped...
Also, note that date-fns now uses ' for escaping characters
'
Edit: Ended up using: https://www.npmjs.com/package/date-fns-tz
No branches or pull requests
Let say I have some date in a variable called dateObject (1 July 2019 05:00:00 UTC), then doing:
formatToTimeZone(dateObject, 'DDHHmm[Z] MMM YYYY', { timeZone: 'UTC' })
should give:
010500Z Jul 2019
but instead gives:
010500+00:00 Jul 2019
I thought doing [Z] escapes the Z like the M in [GMT]????
The text was updated successfully, but these errors were encountered: