You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the last part of the error i=1: cannot parse "1" as "01"
What did you see instead?
month out of range
The text was updated successfully, but these errors were encountered:
bcmills
changed the title
time: wrong error message at parsing months
time: Parse error message is incorrect for initial month missing leading zero
Jan 29, 2019
bcmills
changed the title
time: Parse error message is incorrect for initial month missing leading zero
time: misleading error message from Parse for initial month missing leading zero
Jan 29, 2019
bcmills
changed the title
time: misleading error message from Parse for initial month missing leading zero
time: misleading error message froms Parse for initial element missing leading zeroes
Jan 29, 2019
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Parsing the month-day "1-03" with layout "01-02".
https://play.golang.org/p/7bfuFfjG7nJ
What did you expect to see?
At the last part of the error i=1: cannot parse "1" as "01"
What did you see instead?
month out of range
The text was updated successfully, but these errors were encountered: