diff --git a/yuthon_hr_attendance/controllers/applet_attendance.py b/yuthon_hr_attendance/controllers/applet_attendance.py index 47031c10d..1f1af4375 100644 --- a/yuthon_hr_attendance/controllers/applet_attendance.py +++ b/yuthon_hr_attendance/controllers/applet_attendance.py @@ -407,7 +407,8 @@ class AppletAttendance(Controller): day = start_date_obj + timedelta(days=i) # 只添加年份和月份匹配的日期 if day.year == target_year and day.month == target_month: - holidays_list.append(day.isoformat()) + formatted_date = f"{day.year}年{day.month}月{day.day}日" + holidays_list.append(formatted_date) # 处理调班补班 if leaves.shift_replacement_day: @@ -419,7 +420,7 @@ class AppletAttendance(Controller): # 只添加月份匹配的日期 if month == target_month: - formatted_date = f"{target_year}-{month:02d}-{day:02d}" + formatted_date = f"{target_year}年{month}月{day}日" shift_days_list.append(formatted_date) return {