From 62e14c86d937a4e83f2ded14439c50c4218a776e Mon Sep 17 00:00:00 2001 From: lucius <18210678732@139.com> Date: Fri, 11 Jun 2021 15:48:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E4=B8=BB=E6=9C=BA=E5=90=8C=E6=AD=A5=E6=97=B6UTC?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/host/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/host/utils.py b/spug_api/apps/host/utils.py index 7d32af3..4e7edfd 100644 --- a/spug_api/apps/host/utils.py +++ b/spug_api/apps/host/utils.py @@ -48,7 +48,7 @@ def parse_utc_date(value): return None s_format = '%Y-%m-%dT%H:%M:%S%z' if len(value) == 17: - s_format = '%Y-%m-%dT%H:%M%z' + s_format = '%Y-%m-%dT%H:%MZ' date = datetime.strptime(value, s_format) return date.astimezone().strftime('%Y-%m-%d %H:%M:%S')