From 2f75a7fb1b57cbb4d98ec1596fe5b3d98cdd0934 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Wed, 28 Aug 2024 10:26:22 +0200 Subject: [PATCH] fix(calendar): Fix all day recurring event displayed on 2 days when a DST change occurs at the endDate --- UI/Scheduler/UIxCalListingActions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 64025ba58..09bca7faf 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -351,7 +351,7 @@ static NSArray *tasksFields = nil; if (daylightOffset) { // If it is the end date and allday, we need to remove the offset - if ([fields[count * 2] isEqualToString: @"endDate"] && [[theRecord objectForKey: @"c_isallday"] boolValue]) + if ([fields[count * 2] isEqualToString: @"endDate"] && [[theRecord objectForKey: @"c_isallday"] boolValue] && daylightOffset > 0) aDate = [aDate dateByAddingYears: 0 months: 0 days: 0 hours: 0 minutes: 0 seconds: -1 * daylightOffset]; else