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.

feat: optimize timezone of server (#1537)

takatost8f2bd7663d7d
diff --git a/api/app.py b/api/app.py
index 0a438132012..4b7c35e91a8 100644
--- a/api/app.py
+++ b/api/app.py
@@ -10,6 +10,7 @@ if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true':
import grpc.experimental.gevent
grpc.experimental.gevent.init_gevent()
+import time
import logging
import json
import threading
@@ -36,6 +37,9 @@ from libs.passport import PassportService
import warnings
warnings.simplefilter("ignore", ResourceWarning)
+os.environ['TZ'] = 'UTC'
+time.tzset()
+
class DifyApp(Flask):
pass