Explorar el Código

feat: optimize timezone of server (#1537)

tags/0.3.31
takatost hace 1 año
padre
commit
8f2bd7663d
No account linked to committer's email address
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      api/app.py

+ 4
- 0
api/app.py Ver fichero

@@ -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

Cargando…
Cancelar
Guardar