=== RUN TestParseLayout
time_test.go:29: parsing time "Mon Jan _2 15:04:05 2006" as "Mon Jan _2 15:04:05 2006": cannot parse "_2 15:04:05 2006" as "_2"
time_test.go:29: parsing time "Mon Jan _2 15:04:05 MST 2006" as "Mon Jan _2 15:04:05 MST 2006": cannot parse "_2 15:04:05 MST 2006" as "_2"
time_test.go:31: OK Mon Jan 02 15:04:05 -0700 2006
time_test.go:31: OK 02 Jan 06 15:04 MST
time_test.go:31: OK 02 Jan 06 15:04 -0700
time_test.go:31: OK Monday, 02-Jan-06 15:04:05 MST
time_test.go:31: OK Mon, 02 Jan 2006 15:04:05 MST
time_test.go:31: OK Mon, 02 Jan 2006 15:04:05 -0700
time_test.go:29: parsing time "2006-01-02T15:04:05Z07:00": extra text: "07:00"
time_test.go:29: parsing time "2006-01-02T15:04:05.999999999Z07:00": extra text: "07:00"
time_test.go:31: OK 3:04PM
time_test.go:29: parsing time "Jan _2 15:04:05" as "Jan _2 15:04:05": cannot parse "_2 15:04:05" as "_2"
time_test.go:29: parsing time "Jan _2 15:04:05.000" as "Jan _2 15:04:05.000": cannot parse "_2 15:04:05.000" as "_2"
time_test.go:29: parsing time "Jan _2 15:04:05.000000" as "Jan _2 15:04:05.000000": cannot parse "_2 15:04:05.000000" as "_2"
time_test.go:29: parsing time "Jan _2 15:04:05.000000000" as "Jan _2 15:04:05.000000000": cannot parse "_2 15:04:05.000000000" as "_2"
--- FAIL: TestParseLayout (0.00s)
FAIL
exit status 1
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?
What did you expect to see?
All OK.
What did you see instead?
Only part of them gets OK.