Comment by tshaddox

Comment by tshaddox 6 months ago

0 replies

> I'm a bit surprised that the ISO8601 spec dictates that absent the Z the date-time ought to be interpreted as local

My understanding is that an ISO8601 timestamp with no offset simply means that no time zone is specified, like what the JS Temporal API calls a PlainDateTime. This is a reasonable concept, and to avoid footguns it should be impossible to implicitly convert such a timestamp to a timestamp with a time zone.

This concept isn’t representable as a JS Date, which will always have a time zone specified (always the local time zone).