aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.21/src/time/zoneinfo_goroot.go
blob: 92bdcf4afe7161ea6565639c24259eb2e0de612b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}