From 2b119c41358a4eb726dd8c6d97036b65d7924cab Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 21 Aug 2025 10:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/controllers/applet_attendance.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/controllers/applet_attendance.py b/yuthon_hr_attendance/controllers/applet_attendance.py index 38bb717f5..7df965042 100644 --- a/yuthon_hr_attendance/controllers/applet_attendance.py +++ b/yuthon_hr_attendance/controllers/applet_attendance.py @@ -133,8 +133,10 @@ class AppletAttendance(Controller): limit=1 ) sch_check_in_time, sch_check_out_time = request.env(user=SUPERUSER_ID)['hr.attendance.detail'].normal_clock_in_time(template, current_date) - start_time_str = sch_check_in_time.strftime('%H:%M') - end_time_str = sch_check_out_time.strftime('%H:%M') + start_time = sch_check_in_time + timedelta(hours=8) + end_time = sch_check_out_time + timedelta(hours=8) + start_time_str = start_time.strftime('%H:%M') + end_time_str = end_time.strftime('%H:%M') is_early_card = attendance_id.is_early_card is_late_card = attendance_id.is_late_card check_in_status = '缺卡' if not check_in else ('迟到' if is_late_card else '')