This commit is contained in:
caoqianming 2024-12-24 18:20:52 +08:00
commit 4a642b9014
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ def correct_bill_date():
now_time = datetime.datetime.now()
update_time = now_time - datetime.timedelta(hours=24)
bill_date = make_aware(update_time)
update_sysconfig({'enm1': {'bill_date': str(bill_date)}})
update_sysconfig({'enm1': {'bill_date': bill_date.strftime('%Y-%m-%d %H:%M:%S')}})
@shared_task(base=CustomTask)