From fa56d61ffc3c640d3c87fbde57a3edf827b29114 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 2 Aug 2024 16:39:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9nowx=E4=BD=BF?= =?UTF-8?q?=E7=94=A8aware?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 9f9211c0..18bd4eb1 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -255,7 +255,7 @@ def cal_mpointstats(is_now=1, year=None, month=None, day=None, hour=None, m_code # 先调整一下班时间,以防计算错误 # 为了保持一致使用统计的时间点 - nowx = datetime.now() + nowx = timezone.now() get_total_sec_now(now=nowx) # 再处理total_sec cal_exp_duration_sec(now=nowx) # 先处理shut_sec