add workflow 天润Smart-ccc工单数据,dev

This commit is contained in:
root 2024-08-02 14:39:28 +08:00
parent e76008eee7
commit 109fcb2049
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def formatted2_previous_month(m):
return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
start_of_current_hour = datetime.datetime.now().replace(minute=0, second=0, microsecond=0)
# 减去一个小时,得到前一个小时的开始时间
start_of_previous_hour = start_of_current_hour - datetime.timedelta(month=m)
start_of_previous_hour = start_of_current_hour - datetime.timedelta(months=m)
return start_of_previous_hour.strftime("%Y-%m-%d %H:%M:%S")
#计算签名