feat: 修改nowx使用aware
This commit is contained in:
parent
4604809bf4
commit
fa56d61ffc
|
@ -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
|
get_total_sec_now(now=nowx) # 再处理total_sec
|
||||||
cal_exp_duration_sec(now=nowx) # 先处理shut_sec
|
cal_exp_duration_sec(now=nowx) # 先处理shut_sec
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue