mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +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…
x
Reference in New Issue
Block a user