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