1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:14:44 -07:00
go/src/time
Jeff Johnson 6d6360648a time: defer loading ZONEINFO until first time.LoadLocation call
A user application can now use os.Setenv("ZONEINFO", ..) becase the
value is no longer read on init of the time package.

Fixes #18619

Change-Id: Id8e303d67e6fb9c5d6ea9f969d8c94f6fff1bee3
Reviewed-on: https://go-review.googlesource.com/35639
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-01 21:12:31 +00:00
..
example_test.go time: improve Truncate and Round documentation 2016-09-12 22:07:17 +00:00
export_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
export_test.go time: defer loading ZONEINFO until first time.LoadLocation call 2017-02-01 21:12:31 +00:00
export_windows_test.go
format_test.go time: parse WITA timezone correctly 2016-12-12 20:14:12 +00:00
format.go time: parse WITA timezone correctly 2016-12-12 20:14:12 +00:00
genzabbrs.go
internal_test.go
sleep_test.go
sleep.go time: update Timer.Stop doc to account for AfterFunc 2016-11-11 19:25:24 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick_test.go
tick.go
time_test.go time: use 1e9 rather than 1e-9 in Duration calculations 2016-11-12 01:18:26 +00:00
time.go time: simplify stringification of Month 2016-11-12 21:24:06 +00:00
zoneinfo_abbrs_windows.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00
zoneinfo_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_android.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_ios.go
zoneinfo_plan9.go
zoneinfo_read.go
zoneinfo_test.go time: defer loading ZONEINFO until first time.LoadLocation call 2017-02-01 21:12:31 +00:00
zoneinfo_unix.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_windows_test.go
zoneinfo_windows.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00
zoneinfo.go time: defer loading ZONEINFO until first time.LoadLocation call 2017-02-01 21:12:31 +00:00