From c15c9e630a1050fd7dff560dc85446f54f0015bd Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 7 Aug 2023 00:17:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20locale=E8=AE=BE=E7=BD=AE=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- safesite/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safesite/services.py b/safesite/services.py index c58f7c28..5d2d183c 100644 --- a/safesite/services.py +++ b/safesite/services.py @@ -20,7 +20,7 @@ def get_chinese_description(type:str = 'interval', data: dict = {}): croniter(exp) except ValueError: return '' - locale.setlocale(locale.LC_ALL, 'zh_CN.UTF-8') + locale.setlocale(locale.LC_ALL, '') return get_description(exp) return ''