summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-03-21 18:28:16 -0700
committerIan Lance Taylor <iant@golang.org>2020-04-13 21:01:56 +0000
commit6d63a74f8e8be044d672fc594c0d356eb911f14b (patch)
tree4be3aa2448d82e32345207f799d68f19a7a4cb93 /lib
parent300ed43795f48bbc5b37b33f392caa8b8b1d9a7a (diff)
downloadgo-git-6d63a74f8e8be044d672fc594c0d356eb911f14b.tar.gz
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>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/time/update.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/time/update.bash b/lib/time/update.bash
index 695da8e8f1..27bbadbaab 100755
--- a/lib/time/update.bash
+++ b/lib/time/update.bash
@@ -28,6 +28,8 @@ rm -f ../../zoneinfo.zip
zip -0 -r ../../zoneinfo.zip *
cd ../..
+go generate time/tzdata
+
echo
if [ "$1" = "-work" ]; then
echo Left workspace behind in work/.