chansen / p5-time-moment

Time::Moment represents an exact moment in time.
32 stars 8 forks source link

when parsing strings, "T" and "Z" should be case-insensitive #46

Closed karenetheridge closed 1 year ago

karenetheridge commented 3 years ago

https://tools.ietf.org/html/rfc3339#section-5.6 states:

NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this syntax may alternatively be lower case "t" or "z" respectively.

However, the parser code does not accept "t" or "z".

chansen commented 1 year ago

The time designator T and the UTC designator Z is specified as upper case in ISO 8601:2004. If you want to accept lower case you would have to use the lenient option.