Signed-off-by: -LAN- <[email protected]> Co-authored-by: -LAN- <[email protected]>
12 lines
204 B
Python
12 lines
204 B
Python
import os
|
|
import time
|
|
|
|
from dify_app import DifyApp
|
|
|
|
|
|
def init_app(app: DifyApp):
|
|
os.environ["TZ"] = "UTC"
|
|
# windows platform not support tzset
|
|
if hasattr(time, "tzset"):
|
|
time.tzset()
|