mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
vendor: bump c/common to 9b0d134f392
Bump common to 9b0d134f392f41de3f3065aad162e73a3904168e Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
6
vendor/github.com/containers/common/pkg/timezone/timezone.go
generated
vendored
6
vendor/github.com/containers/common/pkg/timezone/timezone.go
generated
vendored
@@ -20,10 +20,10 @@ import (
|
||||
// It returns the path of the created /etc/localtime file if needed.
|
||||
func ConfigureContainerTimeZone(timezone, containerRunDir, mountPoint, etcPath, containerID string) (localTimePath string, err error) {
|
||||
var timezonePath string
|
||||
switch {
|
||||
case timezone == "":
|
||||
switch timezone {
|
||||
case "":
|
||||
return "", nil
|
||||
case timezone == "local":
|
||||
case "local":
|
||||
timezonePath, err = filepath.EvalSymlinks("/etc/localtime")
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("finding local timezone for container %s: %w", containerID, err)
|
||||
|
||||
Reference in New Issue
Block a user