We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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? Sign in to your account
Version: Latest: go version go1.8.3 darwin/amd64 Also reproducible on Go Playground.
go version go1.8.3 darwin/amd64
https://play.golang.org/p/QvAVXmVMoR
import ( "fmt" "time" ) func main() { if time.RFC3339 == "2006-01-02T15:04:05Z07:00" { fmt.Println("These time.RFC3339 == '2006-01-02T15:04:05Z07:00'") } t, err := time.Parse(time.RFC3339, "2006-01-02T15:04:05Z07:00") if err != nil { panic(err) } fmt.Printf("t: %#v\n", t) }
The date should parse correctly, but there is an error:
These time.RFC3339 == '2006-01-02T15:04:05Z07:00' panic: parsing time "2006-01-02T15:04:05Z07:00": extra text: 07:00 goroutine 1 [running]: main.main() /tmp/sandbox164093353/main.go:14 +0x1e0
The text was updated successfully, but these errors were encountered:
Closing as dup of #9346. Please comment if you disagree.
Sorry, something went wrong.
No branches or pull requests
Version: Latest:
go version go1.8.3 darwin/amd64
Also reproducible on Go Playground.
What did you do?
https://play.golang.org/p/QvAVXmVMoR
Result?
The date should parse correctly, but there is an error:
The text was updated successfully, but these errors were encountered: