naimetti / rfc3339-validator

A pure python RFC3339 validator
MIT License
8 stars 11 forks source link

Time offset is mandatory #12

Open tuxmania87 opened 1 year ago

tuxmania87 commented 1 year ago

Hi,

I am using this library indirectly through another one.

I was noticing that the time-offset indicator whetzer it is Z or an actual offset is mandatory. However at least in ISO 8601 this is optional. Is there any way there can be a parameter where the time-offset validation can be optional?

juliangilbey commented 6 months ago

Hi @tuxmania87, RFC 3339, section 5.6, specifies that the time-offset is mandatory for RFC 3339 date-times. It would be wrong to include such an option here. (An ISO 8601 validator would be a different matter.)