Skip to content

Commit

Permalink
feat: optimize timezone of server (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Nov 15, 2023
1 parent 8306b43 commit 8f2bd76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import grpc.experimental.gevent
grpc.experimental.gevent.init_gevent()

import time
import logging
import json
import threading
Expand All @@ -36,6 +37,9 @@
import warnings
warnings.simplefilter("ignore", ResourceWarning)

os.environ['TZ'] = 'UTC'
time.tzset()


class DifyApp(Flask):
pass
Expand Down

0 comments on commit 8f2bd76

Please sign in to comment.