toISOString outputs times in the timezoneJS.Date's set timezone, but outputs with a "Z" appended which means UTC time.
Correct behavior is to either convert to UTC before outputting ISO8601 strings with "Z" appended, or include the offset (-10:00, +05:00, etc). Most implementations do the former.
toISOString outputs times in the timezoneJS.Date's set timezone, but outputs with a "Z" appended which means UTC time.
Correct behavior is to either convert to UTC before outputting ISO8601 strings with "Z" appended, or include the offset (-10:00, +05:00, etc). Most implementations do the former.