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
ZonedDateTime.from()
Creating a ZonedDateTime doesn't work properly in distant futures.
ZonedDateTime
const date1 = Temporal.ZonedDateTime.from({ year: 2033, month: 6, day: 10, timeZone: 'Europe/Berlin' }).toString(); const date2 = Temporal.ZonedDateTime.from({ year: 2034, month: 6, day: 10, timeZone: 'Europe/Berlin' }).toString(); console.log(date1) //2033-06-10T00:00:00+02:00[Europe/Berlin] console.log(date2) //2034-06-10T00:00:00+01:00[Europe/Berlin]
The timezone offset should not be different. This wrong result seems to be consistent with any year beyond and including 2034.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Creating a
ZonedDateTime
doesn't work properly in distant futures.The timezone offset should not be different. This wrong result seems to be consistent with any year beyond and including 2034.
The text was updated successfully, but these errors were encountered: