go/src/time
Alberto Donizetti 193eda7291 time: skip ZoneAbbr test in timezones with no abbreviation
The testZoneAbbr assumes that

  Parse(RFC1123, t1.Format(RFC1123))

will always succeed. This is not true because Format will fall back to
the numeric zone (ex. -07) for timezones with no abbreviation, but
Parse won't accept the numeric zone when the layout specifies 'MST'
(an abbreviation).

Skip the zone abbreviation test in timezones with no abbreviation.

Fixes #21183

Change-Id: If04691cc23ae1075d8a953733024e17f5a7646de
Reviewed-on: https://go-review.googlesource.com/52430
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-08-02 16:22:49 +00:00
..
example_test.go time: show how to get midnight on the current day 2017-06-28 18:12:46 +00:00
export_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
export_test.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
export_windows_test.go
format.go time: document the Time.String is meant for debugging 2017-07-06 03:53:38 +00:00
format_test.go testing/quick: generate all possible int64, uint64 values 2017-04-03 14:01:25 +00:00
genzabbrs.go time: run genzabbrs.go to update zoneinfo_abbrs_windows.go 2017-06-13 07:12:32 +00:00
internal_test.go
mono_test.go time: strip monotonic clock reading in t.UTC, t.Local, t.In 2017-06-06 18:23:14 +00:00
sleep.go time: update Timer.Stop doc to account for AfterFunc 2016-11-11 19:25:24 +00:00
sleep_test.go all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
sys_plan9.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
sys_unix.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
sys_windows.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
tick.go all: single space after period. 2016-03-02 00:13:47 +00:00
tick_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
time.go time: fix 400 years offset in comment 2017-07-17 15:38:46 +00:00
time_test.go time: test and fix Time.Round, Duration.Round for d > 2⁶² 2017-03-31 20:39:58 +00:00
zoneinfo.go time: clarify documentation for Location.String 2017-07-15 20:49:42 +00:00
zoneinfo_abbrs_windows.go time: run genzabbrs.go to update zoneinfo_abbrs_windows.go 2017-06-13 07:12:32 +00:00
zoneinfo_android.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_ios.go
zoneinfo_plan9.go time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
zoneinfo_read.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
zoneinfo_test.go time: vendor tzdata-2017b and update test 2017-06-07 21:23:58 +00:00
zoneinfo_unix.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_windows.go time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
zoneinfo_windows_test.go time: skip ZoneAbbr test in timezones with no abbreviation 2017-08-02 16:22:49 +00:00