From 9cefb5b53e80fddf7d26bbe56a4704b0547dcfcb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Jul 2021 15:55:35 +0800 Subject: [PATCH] bugfix --- appPublic/timeUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appPublic/timeUtils.py b/appPublic/timeUtils.py index 5aa5cb3..e8420bf 100644 --- a/appPublic/timeUtils.py +++ b/appPublic/timeUtils.py @@ -161,7 +161,7 @@ def timestamp2dt(t): return datetime.datetime.fromtimestamp(t) def date_weekinyear(date_str): - w = datetime.datetime.strptime(date, '%Y-%m-%d').strftime('%W') + w = datetime.datetime.strptime(date_str, '%Y-%m-%d').strftime('%W') return date_str[:5] + w def date_season(date_str): @@ -183,4 +183,3 @@ def date_season(date_str): s = sl.get(m) return date_str[:5] + s -def date_s