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
z
Describe the bug while trying to format a value using z it returns zone offset instead of abbreviated offset
const date = dayjs.tz('2024-12-22T16:21:11+05:30', 'Asia/Kolkata'); console.log(date.format('z')); // Expected: IST console.log(date.format('Z')); // Expected: +05:30
instead of the above expected OP for z formatting it returns GMT:+5:30
GMT:+5:30
I have tried using advancedFormat plugin too still im facing the issue
advancedFormat
Expected behavior
z will be transformed abbreviated offset name correctly according to [(https://day.js.org/docs/en/plugin/advanced-format)]
Information
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
while trying to format a value using
z
it returns zone offset instead of abbreviated offsetinstead of the above expected OP for
z
formatting it returnsGMT:+5:30
I have tried using
advancedFormat
plugin too still im facing the issueExpected behavior
z
will be transformed abbreviated offset name correctly according to [(https://day.js.org/docs/en/plugin/advanced-format)]Information
The text was updated successfully, but these errors were encountered: