]> Cypherpunks repositories - gostls13.git/commit
time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 26 Aug 2016 06:57:00 +0000 (16:57 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 28 Aug 2016 02:51:07 +0000 (02:51 +0000)
commite2e2d10b9afe0cf4845aede06c6dd083a1d281c9
tree32e8ed85318a3a581c7d1938d70ebf60d660b637
parent90c3cf4b52cc9373a96009da0d013019c1f5bcd8
time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go

genzabbrs.go uses whatever zoneinfo database available on the system.
This makes genzabbrs.go output change from system to system. Adjust
go:generate line to always use $GOROOT/lib/time/zoneinfo.zip, so it
does not matter who runs the command.

Also move go:generate line into zoneinfo.go, so it can be run
on Unix (see #16368 for details).

Fixes #15802.

Change-Id: I8ae4818aaf40795364e180d7bb4326ad7c07c370
Reviewed-on: https://go-review.googlesource.com/27832
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/time/zoneinfo.go
src/time/zoneinfo_abbrs_windows.go
src/time/zoneinfo_windows.go