]> Cypherpunks.ru repositories - gostls13.git/commitdiff
time: vendor tzdata-2017b and update test
authorAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 5 Jun 2017 08:20:00 +0000 (10:20 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 7 Jun 2017 21:23:58 +0000 (21:23 +0000)
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 <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

lib/time/update.bash
lib/time/zoneinfo.zip
src/time/zoneinfo_test.go

index b1f9a9306111055ad5e48beebbf409db707f4983..6261f81dcd9d0f05857f034b2229430557da5828 100755 (executable)
@@ -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
index d33dc1d2732850506f8927aae9d0ba8e487dd783..b60ae7f98e7562e1243d6171a52deb1ea68e7dea 100644 (file)
Binary files a/lib/time/zoneinfo.zip and b/lib/time/zoneinfo.zip differ
index b25733c1f6974981e67cd12b3f416fd1d73fb5be..452262f2caf499eae3b3ec3a327377925a8e101b 100644 (file)
@@ -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)",
                },
        }