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 toISOString() method of the TZDate class is not returning the correct output. According to the ISO 8601 standard, the toISOString() method should return a string in the format YYYY-MM-DDTHH:mm:ss.sssZ, where the timezone is always UTC, denoted by the suffix Z.
Hi, I am running into this issue as well in version 1.1.2. Not only the toISOString() method, but also the toJSON() method formats the time not in UTC but in local TZ.
The
toISOString()
method of theTZDate
class is not returning the correct output. According to the ISO 8601 standard, thetoISOString()
method should return a string in the formatYYYY-MM-DDTHH:mm:ss.sssZ
, where the timezone is always UTC, denoted by the suffixZ
.See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
Current Behavior: The method currently returns:
Please note that the format is wrong
Expected Behavior: The method should return (I'm located in 'Europe/Berlin') :
I'm using v1.1.1
The text was updated successfully, but these errors were encountered: