Closed phadej closed 1 year ago
I made a fix in #1035 and none of our existing tests failed.
I'll merge #1035 now. Please comment if strongly disagree. There's still time until next release is cut.
ISO8601 2016 says (emphasis mine)
When it is required to indicate local time and the difference between the time scale of local time and UTC, the representation of the difference shall be appended to the representation of the local time following immediately, without space, the lowest order (extreme right-hand) time element of the local time expression.
Apprently
aeson
currently accepts space before timezone:I suggest we remove this space, as I cannot find any hint we should accept it.
https://datatracker.ietf.org/doc/html/rfc3339#section-5.6 says
(and in fact it says that NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this syntax may alternatively be lower case "t" or "z" respectively, which we don't accept - but that's another issue).
ping @Lysxia @bergmark