diff options
Diffstat (limited to 'src/time/zoneinfo_goroot.go')
-rw-r--r-- | src/time/zoneinfo_goroot.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/time/zoneinfo_goroot.go b/src/time/zoneinfo_goroot.go new file mode 100644 index 0000000..92bdcf4 --- /dev/null +++ b/src/time/zoneinfo_goroot.go @@ -0,0 +1,14 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !ios && !android + +package time + +func gorootZoneSource(goroot string) (string, bool) { + if goroot == "" { + return "", false + } + return goroot + "/lib/time/zoneinfo.zip", true +} |