From d83168eb385f7ae38710028fff5c84252267adbc Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 13 Oct 2020 17:07:34 +0200 Subject: lib/time, time, time/tzdata: use slim tz data format Follow-up for CL 261363 which had to retain the fat tz data format due to failing test. The reason for the failed tests was that when caching location data, the extended time format past the end of zone transitions was not considered. The respective change was introduced in (*Location).lookup by CL 215539. This slims down zoneinfo.zip (and thus also the embedded copy in time/tzdata) by ~350KB. Change-Id: I412f79de98ba45358b8696aca784999b3479135e Reviewed-on: https://go-review.googlesource.com/c/go/+/261877 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- lib/time/update.bash | 2 +- lib/time/zoneinfo.zip | Bin 783364 -> 422355 bytes 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/time/update.bash b/lib/time/update.bash index 54d7676d5d..65ef8fb62b 100755 --- a/lib/time/update.bash +++ b/lib/time/update.bash @@ -21,7 +21,7 @@ curl -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.g tar xzf tzcode$CODE.tar.gz tar xzf tzdata$DATA.tar.gz -make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo ZFLAGS="-b fat" posix_only +make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo posix_only cd zoneinfo rm -f ../../zoneinfo.zip diff --git a/lib/time/zoneinfo.zip b/lib/time/zoneinfo.zip index e3eea2f5ad..13034f804c 100644 Binary files a/lib/time/zoneinfo.zip and b/lib/time/zoneinfo.zip differ -- cgit v1.2.1