[PATCH] time: make the ParseInLocation test more robust
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 9 Mar 2017 12:20:54 +0000 (13:20 +0100)
committerSylvain Beucler <beuc@debian.org>
Fri, 21 Jan 2022 18:45:18 +0000 (18:45 +0000)
commitefbcbb0f3ef4baa21afc7033d3f2018863a9cc31
treeeaff619542f4695201241d864e5fc4cd6df830d8
parent04a54ccffb829d84c505724119dfe9376564ec87
[PATCH] 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>

Gbp-Pq: Name cl-37964--tzdata-2017a.patch
src/time/format_test.go