fix(calendar): fix all-day events in lists

All-day events start/end date were wrong when the period was covering a
DST change.
This commit is contained in:
Francis Lachapelle
2020-10-13 22:37:22 -04:00
parent f1d9df693c
commit 1268e2370f
2 changed files with 2 additions and 3 deletions
@@ -1566,8 +1566,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
if (records)
{
if (r)
records = [self _fixupRecords: records];
records = [self _fixupRecords: records];
ma = [NSMutableArray arrayWithArray: records];
}
else
+1 -1
View File
@@ -286,7 +286,7 @@ static NSArray *tasksFields = nil;
*/
//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++)
{