You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the explicit timezone is ignored, and the output is 1990-12-31T23:00:00
instead of the expected 1991-01-01T04:30:00.
It seems to me that this line in TimezoneDate should respect the passed timezoneOffset instead of the init.timezoneOffset but that might break other code relying on this assumption.
Alternatively, in date.ts we could overwrite the date.timezoneOffset with the explicitly provided timezone.
The text was updated successfully, but these errors were encountered:
In 10.7.0, when passing an explicit timezone to
date
, withpreserveTimezones
enabled:the explicit timezone is ignored, and the output is
1990-12-31T23:00:00
instead of the expected
1991-01-01T04:30:00
.It seems to me that this line in TimezoneDate should respect the passed
timezoneOffset
instead of theinit.timezoneOffset
but that might break other code relying on this assumption.Alternatively, in date.ts we could overwrite the date.timezoneOffset with the explicitly provided timezone.
The text was updated successfully, but these errors were encountered: