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
Consider this code in node:
process.env.TZ = "America/New_York"; const { parseISO } = require("date-fns"); const { formatInTimeZone } = require("date-fns-tz"); console.log(formatInTimeZone(parseISO("2024-03-09T02:00:00.000Z"), "UTC", "h:mm aaaa")); console.log(formatInTimeZone(parseISO("2024-03-10T02:00:00.000Z"), "UTC", "h:mm aaaa"));
Outputs this:
2:00 a.m. 3:00 a.m.
But should output this:
2:00 a.m. 2:00 a.m.
The same issue is reproducible in the browser when the user has a timezone that has DTS.
The text was updated successfully, but these errors were encountered:
I'm experiencing the same issue
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Consider this code in node:
Outputs this:
But should output this:
The same issue is reproducible in the browser when the user has a timezone that has DTS.
The text was updated successfully, but these errors were encountered: