mirror of
https://github.com/golang/go
synced 2024-11-26 07:47:57 -07:00
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:
parent
48a76e13a5
commit
d3c92b7c90
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user