feat: optimize timezone of server (#1537)
This commit is contained in:
@@ -10,6 +10,7 @@ if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true':
|
|||||||
import grpc.experimental.gevent
|
import grpc.experimental.gevent
|
||||||
grpc.experimental.gevent.init_gevent()
|
grpc.experimental.gevent.init_gevent()
|
||||||
|
|
||||||
|
import time
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
@@ -36,6 +37,9 @@ from libs.passport import PassportService
|
|||||||
import warnings
|
import warnings
|
||||||
warnings.simplefilter("ignore", ResourceWarning)
|
warnings.simplefilter("ignore", ResourceWarning)
|
||||||
|
|
||||||
|
os.environ['TZ'] = 'UTC'
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
|
|
||||||
class DifyApp(Flask):
|
class DifyApp(Flask):
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user