From: Alex Brainman Date: Tue, 3 Apr 2012 01:39:38 +0000 (+1000) Subject: [release-branch.go1] time: fix handling of locations with no dst on windows X-Git-Tag: go1.0.1~50 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7510885c4dc552e343b8a49a8e51210534ef3ba2;p=gostls13.git [release-branch.go1] time: fix handling of locations with no dst on windows ««« backport 701af83040ac time: fix handling of locations with no dst on windows Fixes #3437. R=rsc CC=golang-dev https://golang.org/cl/5967063 »»» --- diff --git a/src/pkg/time/zoneinfo_windows.go b/src/pkg/time/zoneinfo_windows.go index 754e392dec..d596fab93d 100644 --- a/src/pkg/time/zoneinfo_windows.go +++ b/src/pkg/time/zoneinfo_windows.go @@ -83,6 +83,9 @@ func initLocalFromTZI(i *syscall.Timezoneinformation) { l.cacheStart = -1 << 63 l.cacheEnd = 1<<63 - 1 l.cacheZone = std + l.tx = make([]zoneTrans, 1) + l.tx[0].when = l.cacheStart + l.tx[0].index = 0 return }