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?
to your account
RFC 3339, section 5.6 specifies that the time-hour field must be two digits wide.
However, Parse permits that field having only a single digit:
reports nil rather than an error.
The text was updated successfully, but these errors were encountered:
same as #29911 ?
Sorry, something went wrong.
It's related. If we're unwilling to change the meaning of "15", we could detect that the format is RFC3339 and perform a stricter check.
Change https://go.dev/cl/425044 mentions this issue: time: fix Parse to reject single digit hour in RFC3339
time: fix Parse to reject single digit hour in RFC3339
Change https://go.dev/cl/426154 mentions this issue: time: parse time with two digits hour for RFC3339 format.
time: parse time with two digits hour for RFC3339 format.
No branches or pull requests