mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat: optimize timezone of server (#1537)
This commit is contained in:
parent
8306b4373b
commit
8f2bd7663d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user