!4514 添加功能

Merge pull request !4514 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-08-13 10:03:12 +00:00
committed by Gitee
@@ -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