Skip to content

Commit

Permalink
fix(calendar): fix all-day events in lists
Browse files Browse the repository at this point in the history
All-day events start date was wrong when the period was covering a DST
change.
  • Loading branch information
cgx committed Oct 15, 2020
1 parent 1c4ff40 commit 5d1ac9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Scheduler/UIxCalListingActions.m
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ - (void) _fixDates: (NSMutableDictionary *) theRecord
*/

//NSLog(@"***[UIxCalListingActions _fixDates:] %@", [theRecord objectForKey: @"c_title"]);
if (dayBasedView || [[theRecord objectForKey: @"c_isallday"] boolValue])
if (currentView && (dayBasedView || [[theRecord objectForKey: @"c_isallday"] boolValue]))
{
for (count = 0; count < 2; count++)
{
Expand Down

0 comments on commit 5d1ac9d

Please sign in to comment.