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 utcToZonedTime function adds an extra day if the timeZone parameter is "UTC" and the time portion of the passed date value is between "00:00:00.000Z" and "00:59:59.999Z".
window.console.log(utcToZonedTime(new Date('2020-02-19T18:59:59.999-0500'), 'UTC')); // Wed Feb 19 2020 23:59:59 GMT-0500 (Eastern Standard Time)
window.console.log(utcToZonedTime(new Date('2020-02-19T19:00:00.000-0500'), 'UTC')); // Fri Feb 21 2020 00:00:00 GMT-0500 (Eastern Standard Time)
window.console.log(utcToZonedTime(new Date('2020-02-19T19:59:59.999-0500'), 'UTC')); // Fri Feb 21 2020 00:59:59 GMT-0500 (Eastern Standard Time)
window.console.log(utcToZonedTime(new Date('2020-02-19T20:00:00.000-0500'), 'UTC')); // Thu Feb 20 2020 01:00:00 GMT-0500 (Eastern Standard Time)
The text was updated successfully, but these errors were encountered:
adc-mhaugen
changed the title
The utcToZonedTime function adds an extra day if the timeZone parameter is "UTC" and the date is between 0:00:00 and 0:59:59 UTC time
The utcToZonedTime function adds an extra day if the timeZone parameter is "UTC" and the date is between "00:00:00.000Z" and "00:59:59.999Z"
Feb 20, 2020
We are experiencing the same issue. Is there a fix provided for the same? I see it does not work on chrome still even after I have updated the library to 1.0.10.
The
utcToZonedTime
function adds an extra day if thetimeZone
parameter is "UTC" and the time portion of the passed date value is between "00:00:00.000Z" and "00:59:59.999Z".Using [email protected].
The text was updated successfully, but these errors were encountered: