From 396005d1f41c536ad646f2bde57df33510641e7a Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Wed, 13 Aug 2025 18:02:36 +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 f0149f2e0..e2e43cdf3 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -205,7 +205,7 @@ class HrAttendanceDetail(models.Model): if not userid or not checkin_time_stamp: _logger.error('没有抓取到用户出勤信息,异常:{0},用户列表{1}'.format(str(data), str(userid_limit))) return False - checkin_time = datetime.fromtimestamp(checkin_time_stamp) if checkin_time_stamp else None + checkin_time = datetime.fromtimestamp(checkin_time_stamp) - timedelta(hours=8) if checkin_time_stamp else None sch_checkin_time = datetime.fromtimestamp(sch_checkin_time_stamp) if sch_checkin_time_stamp else None return checkin_time, sch_checkin_time