go/src/time
zhouguangyuan b7651e5046 [release-branch.go1.17] time: fix looking for zone offset when date is close to a zone transition
The old implement passed start - 1 or end in func lookup to adjust the offset.But if the time is close to the last zoneTrans, like the issue, testcase and comment, the "start" from lookup will be omega. It can't be adjusted correctly.

Fixes #49407

Change-Id: Ibaf82dc4db6d5dd3279796f003d2b19c38a26341
Reviewed-on: https://go-review.googlesource.com/c/go/+/360616
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Robert Findley <rfindley@google.com>
(cherry picked from commit 90462dfc3a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/361955
Trust: Dmitri Shuralyov <dmitshur@golang.org>
2021-11-29 19:46:17 +00:00
..
testdata
tzdata
embed.go
example_test.go
export_android_test.go
export_test.go
export_windows_test.go
format.go [release-branch.go1.17] time: propagate "," separator for fractional seconds into Format 2021-09-15 21:59:48 +00:00
format_test.go [release-branch.go1.17] time: propagate "," separator for fractional seconds into Format 2021-09-15 21:59:48 +00:00
genzabbrs.go
internal_test.go
mono_test.go
sleep.go
sleep_test.go [release-branch.go1.17] runtime: in adjustTimers back up as far as necessary 2021-09-15 23:28:10 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick.go
tick_test.go time: increase slop for TestTicker 2021-04-27 19:37:31 +00:00
time.go [release-branch.go1.17] time: fix looking for zone offset when date is close to a zone transition 2021-11-29 19:46:17 +00:00
time_test.go [release-branch.go1.17] time: fix looking for zone offset when date is close to a zone transition 2021-11-29 19:46:17 +00:00
tzdata_test.go
zoneinfo.go
zoneinfo_abbrs_windows.go
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_ios.go
zoneinfo_js.go
zoneinfo_plan9.go
zoneinfo_read.go
zoneinfo_test.go
zoneinfo_unix.go
zoneinfo_unix_test.go
zoneinfo_windows.go
zoneinfo_windows_test.go