go/src/time
Darin Krauss f12ac5be70 time: fix time zone parsing when format includes time zone seconds
The current implementation fails to parse a time string with a "Z"
time zone using a time format that includes time zone seconds. This
fix correctly parses the "Z" time zone for any Z-base time format
that includes seconds (i.e. "Z070000" or "Z07:00:00").

Fixes #68263

Change-Id: Idf8fa06b5f96383f050c4ffbd2bc5804fd408650
Reviewed-on: https://go-review.googlesource.com/c/go/+/595897
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-07-02 20:01:50 +00:00
..
testdata
tzdata
embed.go
example_test.go time: fix typo in ExampleParseDuration 2024-02-13 01:05:00 +00:00
export_android_test.go
export_test.go
export_windows_test.go
format.go time: fix time zone parsing when format includes time zone seconds 2024-07-02 20:01:50 +00:00
format_rfc3339.go
format_test.go time: fix time zone parsing when format includes time zone seconds 2024-07-02 20:01:50 +00:00
genzabbrs.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
internal_test.go time: time/internal_test.go remove redundant type conversion 2024-06-03 14:56:37 +00:00
mono_test.go
sleep.go time: provide non-default metric for asynctimerchan 2024-06-21 12:36:22 +00:00
sleep_test.go runtime: add fast path for (*timers).adjust 2024-03-22 16:33:57 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick.go time: add available godoc link 2024-04-04 14:21:30 +00:00
tick_test.go time: correct spelling, queing -> queuing 2024-06-11 17:10:37 +00:00
time.go all: document legacy //go:linkname for final round of modules 2024-05-29 17:58:53 +00:00
time_test.go time: add a few more benchmarks 2024-05-23 03:13:47 +00:00
tzdata_test.go
zoneinfo.go time: add available godoc link 2024-04-04 14:21:30 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_goroot.go
zoneinfo_ios.go
zoneinfo_js.go
zoneinfo_plan9.go
zoneinfo_read.go cmd/link: disallow pull-only linknames 2024-05-15 19:57:43 +00:00
zoneinfo_test.go
zoneinfo_unix.go
zoneinfo_unix_test.go
zoneinfo_wasip1.go
zoneinfo_windows.go time: unconditionally use RegLoadMUIString on Windows 2023-09-14 07:20:34 +00:00
zoneinfo_windows_test.go time: unconditionally use RegLoadMUIString on Windows 2023-09-14 07:20:34 +00:00