1
0
mirror of https://github.com/golang/go synced 2024-11-17 17:54:48 -07:00

time: remove unnecessary trailing slash from "/etc/"

Fixes #36640

Change-Id: I2049b572347da1cb967f5a3f2bc342b310216435
Reviewed-on: https://go-review.googlesource.com/c/go/+/215519
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2020-01-20 12:05:08 -08:00
parent 5912f4fc37
commit f9c51e353f

View File

@ -34,7 +34,7 @@ func initLocal() {
tz, ok := syscall.Getenv("TZ")
switch {
case !ok:
z, err := loadLocation("localtime", []string{"/etc/"})
z, err := loadLocation("localtime", []string{"/etc"})
if err == nil {
localLoc = *z
localLoc.name = "Local"