diff --git a/pkg/config/config_local.go b/pkg/config/config_local.go index bcee683d6..5ae543dfb 100644 --- a/pkg/config/config_local.go +++ b/pkg/config/config_local.go @@ -67,11 +67,11 @@ func (c *ContainersConfig) validateTZ() error { "/etc/zoneinfo", } - // Allow using TZDIR per: + // Allow using TZDIR to ovverride the lookupPaths. Ref: // https://sourceware.org/git/?p=glibc.git;a=blob;f=time/tzfile.c;h=8a923d0cccc927a106dc3e3c641be310893bab4e;hb=HEAD#l149 tzdir := os.Getenv("TZDIR") if tzdir != "" { - lookupPaths = append(lookupPaths, tzdir) + lookupPaths = []string{tzdir} } for _, paths := range lookupPaths {