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