time: Weird behavior with RFC3339 parser #30341
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am trying to parse some RFC3339 timestamps like
"2020-04-01T12:00:00Z"
with thetime
package.What did you expect to see?
Nil error.
What did you see instead?
The RFC3339 parse string appears to reject zero-valued timezone suffixes
00:00
Workaround
I am carefully stripping zero-valued timezone suffixes prior to using
time.Parse()
The text was updated successfully, but these errors were encountered: