mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-05 23:41:49 +00:00
fix timezone not found on windows (#568)
Co-authored-by: 7934-方露宇 <fangluyu@wondersgroup.com>
This commit is contained in:
parent
d5ccc867be
commit
fe1a386095
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ from python.helpers.print_style import PrintStyle
|
|||
# Set the new timezone to 'UTC'
|
||||
os.environ["TZ"] = "UTC"
|
||||
# Apply the timezone change
|
||||
time.tzset()
|
||||
if hasattr(time, 'tzset'):
|
||||
time.tzset()
|
||||
|
||||
# initialize the internal Flask server
|
||||
webapp = Flask("app", static_folder=get_abs_path("./webui"), static_url_path="/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue