diff options
| author | Alberto Donizetti <alb.donizetti@gmail.com> | 2017-08-01 17:41:51 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-08-02 16:22:49 +0000 |
| commit | 193eda7291c570e84307b3122a4f496a77b0fa4c (patch) | |
| tree | 243795f5464d0bce82245dd8aabf1c26e245d70f /src/encoding/binary | |
| parent | 6f08c935a9474a300d34e7a476628c2667142474 (diff) | |
| download | go-193eda7291c570e84307b3122a4f496a77b0fa4c.tar.xz | |
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>
Diffstat (limited to 'src/encoding/binary')
0 files changed, 0 insertions, 0 deletions
