IJMacD / rfc3339-iso8601

https://ijmacd.github.io/rfc3339-iso8601
291 stars 11 forks source link

Should "%Y-%M-%DT%h:%m:%s.%uZ" be a valid RFC 3339 datetime? #7

Closed dacut closed 2 years ago

dacut commented 2 years ago

The equivalent format with the timezone split out is here: https://github.com/IJMacD/rfc3339-iso8601/blob/master/src/formats/rfc.js#L33

And this is generated as an ISO format:

%Y-%M-%DT%h:%m:%s.%uZ | 2021-07-27T14:20:32.556000Z |   | ✔️

I believe this is just an omission in the rfc.js file. A quick read of RFC 3339 doesn't mention anything prohibiting this combination.

Thanks! This is a valuable resource in the date/time format craziness!

IJMacD commented 2 years ago

Thank you for pointing this out. I believe you are correct, and it had just been unintentionally omitted.

I've added the missing line to rfc.js as well as the format from the original title of this issue as it too wasn't included. (But at least unlike the former case its prior omission wasn't misleading)