go/src/time
Geon Kim 2adec52b5a [release-branch.go1.19] 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.

For #58682
Fixes #59074

Change-Id: Ie34a6d658d14c2b33098b29ab83c041ef0d34266
GitHub-Last-Rev: f6681eb44c
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>
(cherry picked from commit 90dde5dec1)
Reviewed-on: https://go-review.googlesource.com/c/go/+/478657
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Heschi Kreinick <heschi@google.com>
2023-03-23 17:51:14 +00:00
..
testdata
tzdata lib/time, time/tzdata: update to 2022a 2022-05-31 08:53:53 +00:00
embed.go
example_test.go time: document hhmmss formats 2022-04-27 00:11:22 +00:00
export_android_test.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
export_test.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
export_windows_test.go
format.go time: clarify documentation for allowed formats and add tests to prove them 2022-07-25 16:15:08 +00:00
format_test.go time: clarify documentation for allowed formats and add tests to prove them 2022-07-25 16:15:08 +00:00
genzabbrs.go
internal_test.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
mono_test.go
sleep.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
sleep_test.go time: skip TestTimerModifiedEarlier on plan9/arm 2022-01-06 19:42:27 +00:00
sys_plan9.go
sys_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
sys_windows.go time: return ENOENT instead of ERROR_PATH_NOT_FOUND in windows 2022-05-08 17:19:07 +00:00
tick.go all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments 2022-04-05 17:52:29 +00:00
tick_test.go
time.go time: add Time.ZoneBounds 2022-05-17 03:26:28 +00:00
time_test.go [release-branch.go1.19] time: fix timezone lookup logic for non-DST zones 2023-03-23 17:51:14 +00:00
tzdata_test.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo.go [release-branch.go1.19] time: fix timezone lookup logic for non-DST zones 2023-03-23 17:51:14 +00:00
zoneinfo_abbrs_windows.go [release-branch.go1.19] time: update windows zoneinfo_abbrs 2023-02-09 18:52:56 +00:00
zoneinfo_android.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_android_test.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_goroot.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_ios.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_js.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_plan9.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_read.go [release-branch.go1.19] time: fix timezone lookup logic for non-DST zones 2023-03-23 17:51:14 +00:00
zoneinfo_test.go [release-branch.go1.19] time: fix timezone lookup logic for non-DST zones 2023-03-23 17:51:14 +00:00
zoneinfo_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
zoneinfo_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
zoneinfo_windows.go time: fix zoneinfo.zip locating logic when built with -trimpath 2022-03-18 20:57:35 +00:00
zoneinfo_windows_test.go