1
0
mirror of https://github.com/golang/go synced 2024-11-15 05:40:32 -07:00

[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
»»»
This commit is contained in:
Alex Brainman 2012-04-03 11:39:38 +10:00
parent b4f17bdf98
commit 7510885c4d

View 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
}