time: Incorrect zonebounds on location based on POSIX TZ string #70633
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.3 linux/amd64
Output of
go env
in your module/workspace:What did you do?
My goal was to check if a posix tz string has the same time zone transitions as a given
time.Location
.Via an empty Time zone information format string I loaded a Posix timezone string as location:
https://go.dev/play/p/iRKJ1idPNz6.
Using the loaded location I call
ZoneBounds()
.What did you see happen?
As from the go.dev/play example: it returns the end of DST and the end of the year.
What did you expect to see?
I expected to see get the end of DST and the start of the DST in the next year.
Debugging
I dug through the time library and found this comment:
This comment predates the addition of the
ZoneBounds
method. Which is now a second caller that cares.The text was updated successfully, but these errors were encountered: