Closed Natim closed 6 years ago
@Natim I want to keep this library scoped to ISO-8601 date time strings...if Facebook's format is technically a valid ISO-8601 string (which maybe it is and I'm not aware?) then could you link me to some docs about that relationship?
According to the wikipedia page linked in the readme or the W3C definition, it doesn't seems to be a valid ISO-8601 date, however Facebook claim it is.
The Facebook documentation itself doesn't elaborate about their datetime format.
I tried to update the parser to add a oneOf, but I wasn't successful.
It is up to you to decide if you want to cover that case and I obviously can't blame you to decide to follow the spec to the letter, just wanted to let you know that I encountered something that claimed to be an ISO8601 datetime and that it apparently wasn't supported by this lib.
@natim yeah I want to stick to the canonical definition here - although worth noting the author of https://package.elm-lang.org/packages/jweir/elm-iso8601/latest might feel differently!
@rtfeldman Is this something that you would accept to have as part as this lib?