• Alberto Donizetti's avatar
    time: skip ZoneAbbr test in timezones with no abbreviation · 193eda72
    Alberto Donizetti authored
    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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    193eda72
Name
Last commit
Last update
..
example_test.go Loading commit data...
export_android_test.go Loading commit data...
export_test.go Loading commit data...
export_windows_test.go Loading commit data...
format.go Loading commit data...
format_test.go Loading commit data...
genzabbrs.go Loading commit data...
internal_test.go Loading commit data...
mono_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_abbrs_windows.go Loading commit data...
zoneinfo_android.go Loading commit data...
zoneinfo_android_test.go Loading commit data...
zoneinfo_ios.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_test.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...
zoneinfo_windows_test.go Loading commit data...