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
If the user supplies data that has no time of day information, I think it is reasonable for them to expect the offset + the local time to equal what they originally supplied.
The output of this calculation seems to violate that rule, since the offset omits the half minute.
The text was updated successfully, but these errors were encountered:
Hi! This is because the RFC 9557 string format doesn't allow HH:MM:SS in the offset part, so when we serialize a ZonedDateTime to a string, we don't want to output a string that other clients may not be able to parse. Temporal does accept the string 1969-12-31T23:15:30-00:44:30[Africa/Monrovia] and hopefully future improvements to RFC 9557 will allow outputting it as well.
The -00:45 string is still deserialized correctly when appropriate for the given time zone — see the note about MATCH-MINUTES in InterpretISODateTimeOffset.
It seems inconsistent that the half-minute is applied to the timestamp, but omitted from the offset:
If the user supplies data that has no time of day information, I think it is reasonable for them to expect the offset + the local time to equal what they originally supplied.
The output of this calculation seems to violate that rule, since the offset omits the half minute.
The text was updated successfully, but these errors were encountered: