mirror of
https://github.com/golang/go
synced 2024-09-29 11:24:28 -06:00
time: add /etc/zoneinfo as valid path for tzdata for NixOS
NixOS has no /usr/share, but does have tzdata at /etc/zoneinfo.
This commit is contained in:
parent
fcd0e0963f
commit
9969dd3e2c
@ -16,11 +16,13 @@ import (
|
||||
)
|
||||
|
||||
// Many systems use /usr/share/zoneinfo, Solaris 2 has
|
||||
// /usr/share/lib/zoneinfo, IRIX 6 has /usr/lib/locale/TZ.
|
||||
// /usr/share/lib/zoneinfo, IRIX 6 has /usr/lib/locale/TZ,
|
||||
// NixOS has /etc/zoneinfo.
|
||||
var platformZoneSources = []string{
|
||||
"/usr/share/zoneinfo/",
|
||||
"/usr/share/lib/zoneinfo/",
|
||||
"/usr/lib/locale/TZ/",
|
||||
"/etc/zoneinfo",
|
||||
}
|
||||
|
||||
func initLocal() {
|
||||
|
Loading…
Reference in New Issue
Block a user