4 ms·
ISO 8601 only allows timezones as offsets, not as locations. If it allowed "Africa/Cairo" instead of "+0200" that would be fine. > they could hypothetically (
by iso1631 1y ago
ISO 8601 only allows timezones as offsets, not as locations.
If it allowed "Africa/Cairo" instead of "+0200" that would be fine.
> they could hypothetically (if you want to be literal-minded about it) change the law to make DST happen on absolutely any day of the year or not at all.
That's the whole point - that's why you store future date/times with the location, not the offset, and not in UTC
- phiresky 1y agoThere's an extension to ISO8601 that fixes this and is starting to become supported in libraries: 2019-12-23T12:00:00-02:00[America/Sao_Paulo] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime#rfc_9557_format https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...