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 utcOffset of Pacific/Marquesas is -570, but utcOffsetStr returns -10:30.
What is expected
The utcOffsetStr returns -09:30.
What is happening
The code in src/build-timezone.js
functiongetOffsetStr(offset){consthours=Math.floor(offset/60);// There may be a calculation error hereconstmin=offset%60;constsign=offset<0 ? '-' : '+';return`${sign}${getNumStr(hours)}:${getNumStr(min)}`;}
The problem
The
utcOffset
ofPacific/Marquesas
is-570
, bututcOffsetStr
returns-10:30
.What is expected
The
utcOffsetStr
returns-09:30
.What is happening
The code in
src/build-timezone.js
This evaluates incorrectly for negative values
Suggest to fix
The text was updated successfully, but these errors were encountered: