Skip to content

Agent Zero AI framework

fix timezone not found on windows (#568)

Rffanfe1a3860958d
diff --git a/run_ui.py b/run_ui.py
index d5636de50..e46746f3b 100644
--- a/run_ui.py
+++ b/run_ui.py
@@ -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="/")