From: Alberto Donizetti Date: Mon, 5 Jun 2017 08:20:00 +0000 (+0200) Subject: time: vendor tzdata-2017b and update test X-Git-Tag: go1.9beta1~85 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=fcee1e3739c8b6a0199ed0e0ff4e2b9b8d28d5bc;p=gostls13.git time: vendor tzdata-2017b and update test This change updates the vendored tzdata database to version 2017b (released 2017-03-20). The TestFirstZone test (which always uses the vendored database) is updated to make it work with the new timezones database. (The Tokelau abbreviation was changed from 'TKT' to the numeric abbreviation in tzdata-2017a) Fixes #19376 Change-Id: I0dea93e8703992de5c92c7840b8bacad9d02c50d Reviewed-on: https://go-review.googlesource.com/44832 Run-TryBot: Brad Fitzpatrick Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/lib/time/update.bash b/lib/time/update.bash index b1f9a93061..6261f81dcd 100755 --- a/lib/time/update.bash +++ b/lib/time/update.bash @@ -8,8 +8,8 @@ # Consult http://www.iana.org/time-zones for the latest versions. # Versions to use. -CODE=2016j -DATA=2016j +CODE=2017b +DATA=2017b set -e rm -rf work diff --git a/lib/time/zoneinfo.zip b/lib/time/zoneinfo.zip index d33dc1d273..b60ae7f98e 100644 Binary files a/lib/time/zoneinfo.zip and b/lib/time/zoneinfo.zip differ diff --git a/src/time/zoneinfo_test.go b/src/time/zoneinfo_test.go index b25733c1f6..452262f2ca 100644 --- a/src/time/zoneinfo_test.go +++ b/src/time/zoneinfo_test.go @@ -87,8 +87,8 @@ func TestFirstZone(t *testing.T) { { "Pacific/Fakaofo", 1325242799, - "Thu, 29 Dec 2011 23:59:59 -1100 (TKT)", - "Sat, 31 Dec 2011 00:00:00 +1300 (TKT)", + "Thu, 29 Dec 2011 23:59:59 -1100 (-11)", + "Sat, 31 Dec 2011 00:00:00 +1300 (+13)", }, }