From 5f0201f8333da313d5fa2ef08588a04fc74e6943 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 8 Jul 2025 18:45:33 +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/controllers/applet_attendance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {