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([