Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISO8601 parsing error #65

Closed
vrazdalovschi opened this issue May 4, 2020 · 1 comment
Closed

ISO8601 parsing error #65

vrazdalovschi opened this issue May 4, 2020 · 1 comment

Comments

@vrazdalovschi
Copy link

Hi, I've found an error reading this DateTime: 2020-08-07T11:05:37.000+0000

It is valid ISO8601, but strfmt.DateTime cannot parse this string.
The valid layout is 2006-01-02T15:04:05.999999999Z0700
Can you add support for this ISO8601 layout?

Error message:
parsing time "2020-08-07T11:05:37.000+0000": extra text: :37.000+00000x02020-08-07T11:05:37.000Z

Related topics:
https://stackoverflow.com/a/39180230/9601186
https://stackoverflow.com/a/28159233/9601186

@casualjim
Copy link
Member

That format is invalid, your timezone needs a colon, it will parse this: "2020-08-07T11:05:37.000+00:00"

https://www.ietf.org/rfc/rfc3339.html#section-5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants