]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.8] time: make the ParseInLocation test more robust
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 9 Mar 2017 12:20:54 +0000 (13:20 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 9 Mar 2017 18:52:38 +0000 (18:52 +0000)
commit8890527476e25747f063377d637b106db0008329
treea16daa0d55bec6dd54d37049fdcc9444a5cd763c
parentea6781bcd0fd8a0b59d5d617cb73516bd4f4ad12
[release-branch.go1.8] time: make the ParseInLocation test more robust

The tzdata 2017a update (2017-02-28) changed the abbreviation of the
Asia/Baghdad time zone (used in TestParseInLocation) from 'AST' to the
numeric '+03'.

Update the test so that it skips the checks if we're using a recent
tzdata release.

Fixes #19457

Change-Id: I45d705a5520743a611bdd194dc8f8d618679980c
Reviewed-on: https://go-review.googlesource.com/37964
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
(cherry picked from commit 91563ced5897faf729a34be7081568efcfedda31)
Reviewed-on: https://go-review.googlesource.com/37991
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/time/format_test.go