From ee6ac3d932e393fd3f760901ce0a1223fe9c14fc Mon Sep 17 00:00:00 2001 From: ljmwkx <1340053001@qq.com> Date: Sat, 8 Feb 2025 20:24:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=80=E7=89=88=E6=9C=AC?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95?= 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 8347c86e6..f6d7b257c 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -816,7 +816,7 @@ class HrAttendanceDetail(models.Model): @staticmethod def divide_time_range_fixed(start_time, end_time): time_ranges = [start_time.strftime("%Y-%m-%d")] - while start_time <= end_time: + while start_time + relativedelta(days=1) <= end_time: current_date = start_time + relativedelta(days=1) time_ranges.append(current_date.strftime("%Y-%m-%d")) start_time = current_date