From 1fe745f370a598c8425ea8dddda8d01efe26a00d Mon Sep 17 00:00:00 2001 From: Dramelac Date: Wed, 22 May 2024 13:36:11 +0200 Subject: [PATCH] local import lzlocal --- exegol/model/ContainerConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exegol/model/ContainerConfig.py b/exegol/model/ContainerConfig.py index eefcb111..61122fb1 100644 --- a/exegol/model/ContainerConfig.py +++ b/exegol/model/ContainerConfig.py @@ -10,7 +10,6 @@ from pathlib import Path, PurePath from typing import Optional, List, Dict, Union, Tuple, cast -import tzlocal from docker.models.containers import Container from docker.types import Mount from rich.prompt import Prompt @@ -428,7 +427,8 @@ def enableSharedTimezone(self): if not self.__share_timezone: logger.verbose("Config: Enabling host timezones") if EnvInfo.is_windows_shell or EnvInfo.isMacHost(): - current_tz = tzlocal.get_localzone_name() + from tzlocal import get_localzone_name + current_tz = get_localzone_name() if current_tz: logger.debug(f"Sharing timezone via TZ env var: '{current_tz}'") self.addEnv("TZ", current_tz)