mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 13:39:04 +08:00
chore: remove windows platform timezone set (#8712)
This commit is contained in:
parent
f42ef0624d
commit
9ca2e2c968
@ -53,11 +53,9 @@ from services.account_service import AccountService
|
|||||||
|
|
||||||
warnings.simplefilter("ignore", ResourceWarning)
|
warnings.simplefilter("ignore", ResourceWarning)
|
||||||
|
|
||||||
# fix windows platform
|
os.environ["TZ"] = "UTC"
|
||||||
if os.name == "nt":
|
# windows platform not support tzset
|
||||||
os.system('tzutil /s "UTC"')
|
if hasattr(time, "tzset"):
|
||||||
else:
|
|
||||||
os.environ["TZ"] = "UTC"
|
|
||||||
time.tzset()
|
time.tzset()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user