Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
time: Parse does not cover all valid RFC1123Z dates #34459
What version of Go are you using (
RFC822 also allow day to be one or two digits:
For date fix is trivial but we don't have placeholder for 2 or 4 digits year.
On another way RFC1123 say:
So maybe its not needed to implement it.
This seems related to #20869.
Note that the documentation already explicitly says "RFC3339, RFC822, RFC822Z, RFC1123, and RFC1123Z are useful for formatting; when used with time.Parse they do not accept all the time formats permitted by the RFCs." (https://golang.org/pkg/time/#pkg-constants).
I don't really see anything else to do here.
Given that at least three of us chimed in on this issue without noticing the documentation, I'd say that the documentation is not very discoverable — that particular section is so verbose that this (perhaps important) detail ended up buried.
That said, I don't see a way to make it more concise without dropping something equally important, so closing.