time: The Time object created with time.Date() in the timezone America/New_York
returns incorrect information when DST is applied.
#66554
Labels
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: