Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: remove windows platform timezone set (#8712)

非法操作9ca2e2c96896
diff --git a/api/app.py b/api/app.py
index 91a49337fcc..1b58beee158 100644
--- a/api/app.py
+++ b/api/app.py
@@ -53,11 +53,9 @@ from services.account_service import AccountService
warnings.simplefilter("ignore", ResourceWarning)
-# fix windows platform
-if os.name == "nt":
- os.system('tzutil /s "UTC"')
-else:
- os.environ["TZ"] = "UTC"
+os.environ["TZ"] = "UTC"
+# windows platform not support tzset
+if hasattr(time, "tzset"):
time.tzset()