mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-31 16:14:53 +00:00
(fix) enhance display of all-day invitations (fixes #4145)
This commit is contained in:
@@ -221,21 +221,19 @@
|
||||
return [[self dateFormatter] formattedTime: [self endCalendarDate]];
|
||||
}
|
||||
|
||||
- (BOOL) isEndDateOnSameDay
|
||||
{
|
||||
NSCalendarDate *aDate;
|
||||
if ([[self inEvent] isAllDay])
|
||||
aDate = [[self endCalendarDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 seconds:-1];
|
||||
else
|
||||
aDate = [self endCalendarDate];
|
||||
return [[self startCalendarDate] isDateOnSameDay: aDate];
|
||||
}
|
||||
|
||||
- (NSTimeInterval) duration
|
||||
{
|
||||
return [[self endCalendarDate] timeIntervalSinceDate:[self startCalendarDate]];
|
||||
}
|
||||
|
||||
- (BOOL) isEndDateOnSameDay
|
||||
{
|
||||
if ([[self inEvent] isAllDay])
|
||||
return [self duration] <= 86400;
|
||||
|
||||
return [[self startCalendarDate] isDateOnSameDay: [self endCalendarDate]];
|
||||
}
|
||||
|
||||
/* calendar folder support */
|
||||
|
||||
- (SOGoAppointmentFolder *) calendarFolder
|
||||
|
||||
Reference in New Issue
Block a user