fix: sflog work_date 默认start_time.date

This commit is contained in:
zty 2024-12-13 17:32:56 +08:00
parent e331002538
commit cdc70177bb
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def make_sflogs(mgroup: Mgroup, start_date: datetime.date, end_date: datetime.da
sflog, is_created = SfLog.objects.get_or_create(mgroup=mgroup, shift=shift, start_time=start_time, defaults={
"mgroup": mgroup,
"shift": shift,
"work_date": current_date,
"work_date": start_time.date(),
"start_time": start_time,
"end_time": end_time,
"total_sec_now": total_sec,