From f4036cacd4cb0927d1f048776cd241f51e5e20d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Fri, 9 Jan 2026 11:06:55 +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/models/hr_attendance_detail_wechat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 3aecc236c..7c71529cc 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -90,7 +90,7 @@ class HrAttendanceDetail(models.Model): if record.employee_id and record.checkin_time and record.source == 'iot': employee_id = record.employee_id checkin_datetime = record.checkin_time - current_data = record.checkin_time.date() + current_data = record.checkin_time.date() + timedelta(hours=8) day_start = checkin_datetime.replace(hour=0, minute=0, second=0, microsecond=0) day_end = checkin_datetime.replace(hour=23, minute=59, second=59, microsecond=99) daily_iot_records = self.search([