|
|
|
|
|
by burntsushi
508 days ago
|
|
That's exactly why Temporal uses RFC 9557 for its `ZonedDateTime` serialization format: >> zdt = Temporal.Now.zonedDateTimeISO()
>> zdt.toJSON()
"2025-01-24T19:57:01.089557834-05:00[America/New_York]"
>> zdt.toString()
"2025-01-24T19:57:01.089557834-05:00[America/New_York]"
Temporal will even check that the offset is still correct for the time zone when you deserialize. |
|