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/end date were wrong when the period was covering a
DST change.
  • Loading branch information
cgx committed Oct 14, 2020
1 parent f1d9df6 commit 1268e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions SoObjects/Appointments/SOGoAppointmentFolder.m
Expand Up @@ -1566,8 +1566,7 @@ - (NSArray *) fetchFields: (NSArray *) _fields

if (records)
{
if (r)
records = [self _fixupRecords: records];
records = [self _fixupRecords: records];
ma = [NSMutableArray arrayWithArray: records];
}
else
Expand Down
2 changes: 1 addition & 1 deletion UI/Scheduler/UIxCalListingActions.m
Expand Up @@ -286,7 +286,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 1268e23

Please sign in to comment.