Skip to content

Commit

Permalink
local import lzlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed May 22, 2024
1 parent d75e8a9 commit 1fe745f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exegol/model/ContainerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1fe745f

Please sign in to comment.