-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
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
time: time ParseInLocation error #66987
Comments
Can you post a full, runnable program? Also what's
|
// output |
Oh, it's CDT as in China Daylight Time. There was a time change there on April 15 1990:
So 02:00 does not exists. From the documentation:
Closing here as this is working as intended. |
Go version
go version go1.22.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
➜ demo go run main.go
1990-04-15 03:00:00 +0900 CDT
1990-04-15 03:00:00 +0900 CDT
Both 15/04/90 02:00 and 15/04/90 03:00 are parsed as 1990-04-15 03:00:00
What did you expect to see?
➜ demo go run main.go
1990-04-15 02:00:00 +0900 CDT
1990-04-15 03:00:00 +0900 CDT
The text was updated successfully, but these errors were encountered: