]> Cypherpunks.ru repositories - gostls13.git/commit
lib/time, time, time/tzdata: use slim tz data format
authorTobias Klauser <tklauser@distanz.ch>
Tue, 13 Oct 2020 15:07:34 +0000 (17:07 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 14 Oct 2020 09:00:41 +0000 (09:00 +0000)
commitd83168eb385f7ae38710028fff5c84252267adbc
treedae4eb6f124791d6ce36fc94f5473eba421d9e52
parentfc3a6f4533149212264f74c3a6871a79dc7bbe65
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 <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
lib/time/update.bash
lib/time/zoneinfo.zip
src/time/tzdata/tzdata.go
src/time/tzdata/zipdata.go
src/time/zoneinfo_read.go