]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] time: fix handling of locations with no dst on windows
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 3 Apr 2012 01:39:38 +0000 (11:39 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 3 Apr 2012 01:39:38 +0000 (11:39 +1000)
««« backport 701af83040ac
time: fix handling of locations with no dst on windows

Fixes #3437.

R=rsc
CC=golang-dev
https://golang.org/cl/5967063
»»»

src/pkg/time/zoneinfo_windows.go

index 754e392decabe0c1304aa144f297cf1662409cd3..d596fab93d649aa9179b54e1841b28685fa665df 100644 (file)
@@ -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
        }