badboy / iso8601

Parsing ISO8601 dates using nom
https://docs.rs/iso8601/
MIT License
74 stars 22 forks source link

It seems that minus sign is not allowed in dates #38

Open LemmingAvalanche opened 3 years ago

LemmingAvalanche commented 3 years ago

ISO 8601 prefers using minus sign (U+2212 MINUS SIGN, ) to represent a negative offset according to Wikipedia. Hyphen minus is also allowed (U+002D HYPHEN-MINUS, -). But it seems that the parser only accepts hyphen minus.

badboy commented 3 years ago

The code lives here. We will need a new function to match the different minus signs just for the timezone.. Care to submit a PR?

LemmingAvalanche commented 3 years ago

PR not forthcoming.