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
It is because $localOffset is 0 (this is correct offset) and therefore value of (new Date()).getTimezoneOffset() is used (instead of the value 0).
Operator || cannot be used here, because it does not work correctly with $localOffset == 0.
This line should be changed into:
This line is causing several bugs when working with +00:00 timezones (for example Europe/Lisbon):
dayjs/src/plugin/utc/index.js
Line 117 in b5a1391
It is because $localOffset is 0 (this is correct offset) and therefore value of
(new Date()).getTimezoneOffset()
is used (instead of the value 0).Operator || cannot be used here, because it does not work correctly with $localOffset == 0.
This line should be changed into:
The text was updated successfully, but these errors were encountered: