Skip to content

Commit 8e4f1a7

Browse files
committed
time: look for zoneinfo.zip in GOROOT
The zoneinfo.zip file will be in the $GOROOT in self-hsoted builds on iOS. Updates #31722 Change-Id: I991fae92e3dc50581b099a2d8901aed36ecc7cef Reviewed-on: https://go-review.googlesource.com/c/go/+/174310 Run-TryBot: Elias Naur <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 62ddf7d commit 8e4f1a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/time/zoneinfo_ios.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77

88
package time
99

10-
import "syscall"
10+
import (
11+
"runtime"
12+
"syscall"
13+
)
1114

1215
var zoneSources = []string{
1316
getZipParent() + "/zoneinfo.zip",
17+
runtime.GOROOT() + "/lib/time/zoneinfo.zip",
1418
}
1519

1620
func getZipParent() string {

0 commit comments

Comments
 (0)