]> Cypherpunks repositories - gostls13.git/commit
time: fix timezone lookup logic for non-DST zones
authorGeon Kim <geon0250@gmail.com>
Sat, 11 Mar 2023 00:57:57 +0000 (00:57 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 13 Mar 2023 17:06:56 +0000 (17:06 +0000)
commit90dde5dec1126ddf2236730ec57511ced56a512d
tree95177f0dfafe0992a41521082231ae2196e1a634
parente671fe0c3efc497397af3362a4b79c895fbd8bfc
time: fix timezone lookup logic for non-DST zones

This change fixes time.LoadLocationFromTZData and time.Location.lookup logic if the given time is after the last transition and the extend string doesn't have the DST rule.

Fixes #58682

Change-Id: Ie34a6d658d14c2b33098b29ab83c041ef0d34266
GitHub-Last-Rev: f6681eb44c0ea0772004e56eb68fcbd9023d971e
GitHub-Pull-Request: golang/go#58684
Reviewed-on: https://go-review.googlesource.com/c/go/+/471020
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/time/time_test.go
src/time/zoneinfo.go
src/time/zoneinfo_read.go
src/time/zoneinfo_test.go