mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 06:49:03 +08:00
fix(api): patch Windows timezone set (#1575)
This commit is contained in:
parent
5b7071e4b0
commit
7cda3fe85b
@ -37,8 +37,12 @@ from libs.passport import PassportService
|
||||
import warnings
|
||||
warnings.simplefilter("ignore", ResourceWarning)
|
||||
|
||||
os.environ['TZ'] = 'UTC'
|
||||
time.tzset()
|
||||
# fix windows platform
|
||||
if os.name == "nt":
|
||||
os.system('tzutil /s "UTC"')
|
||||
else:
|
||||
os.environ['TZ'] = 'UTC'
|
||||
time.tzset()
|
||||
|
||||
|
||||
class DifyApp(Flask):
|
||||
|
Loading…
x
Reference in New Issue
Block a user