]> Cypherpunks.ru repositories - gostls13.git/commit
time/tzdata: new package
authorIan Lance Taylor <iant@golang.org>
Sun, 22 Mar 2020 01:28:16 +0000 (18:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 13 Apr 2020 21:01:56 +0000 (21:01 +0000)
commit6d63a74f8e8be044d672fc594c0d356eb911f14b
tree4be3aa2448d82e32345207f799d68f19a7a4cb93
parent300ed43795f48bbc5b37b33f392caa8b8b1d9a7a
time/tzdata: new package

Importing the time/tzdata package will embed a copy of the IANA
timezone database into the program. This will let the program work
correctly when the timezone database is not available on the system.
It will increase the size of the binary by about 800K.

You can also build a program with -tags timetzdata to embed the
timezone database in the program being built.

Fixes #21881
Fixes #38013
Fixes #38017

Change-Id: Iffddee72a8f46c95fee3bcde43c142d6899d9246
Reviewed-on: https://go-review.googlesource.com/c/go/+/224588
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
doc/go1.15.html
lib/time/update.bash
src/go/build/deps_test.go
src/time/embed.go [new file with mode: 0644]
src/time/tzdata/generate_zipdata.go [new file with mode: 0644]
src/time/tzdata/tzdata.go [new file with mode: 0644]
src/time/tzdata/tzdata_test.go [new file with mode: 0644]
src/time/tzdata/zipdata.go [new file with mode: 0644]
src/time/zoneinfo_read.go