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
When the timezone is set to America/New_York and the time is set to 2 o'clock using time.Date(), DST should be applied, resulting in an output of 3 o'clock, but it returns 1 o'clock instead. However, in other timezones, it works correctly.
Please Check. https://go.dev/play/p/kN_Cmgp8zny
What did you see happen?
I got the following result. It's the same response as the playground link attached above.
go run main.go
Sun, 10 Mar 2024 01:00:00 EST
Sun, 10 Mar 2024 01:00:00 EST
Sun, 31 Mar 2024 01:00:00 CET
Sun, 31 Mar 2024 03:00:00 CEST
What did you expect to see?
The response I consider to be correct is as follows.
Sun, 10 Mar 2024 01:00:00 EST
Sun, 10 Mar 2024 03:00:00 EDT
Sun, 31 Mar 2024 01:00:00 CET
Sun, 31 Mar 2024 03:00:00 CEST
The text was updated successfully, but these errors were encountered:
Go version
go version go1.22.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
When the timezone is set to America/New_York and the time is set to 2 o'clock using time.Date(), DST should be applied, resulting in an output of 3 o'clock, but it returns 1 o'clock instead. However, in other timezones, it works correctly.
Please Check. https://go.dev/play/p/kN_Cmgp8zny
What did you see happen?
I got the following result. It's the same response as the playground link attached above.
What did you expect to see?
The response I consider to be correct is as follows.
The text was updated successfully, but these errors were encountered: