diff --git a/SoObjects/Appointments/English.lproj/Localizable.strings b/SoObjects/Appointments/English.lproj/Localizable.strings index 0e23d13d0..da4f31192 100644 --- a/SoObjects/Appointments/English.lproj/Localizable.strings +++ b/SoObjects/Appointments/English.lproj/Localizable.strings @@ -18,6 +18,8 @@ vtodo_class2 = "(Confidential task)"; "calendar_label" = "Calendar"; "startDate_label" = "Start"; "endDate_label" = "End"; +"time_label" = "Time"; +"to_label" = "to"; "due_label" = "Due Date"; "location_label" = "Location"; "summary_label" = "Summary"; diff --git a/SoObjects/Appointments/SOGoAptMailNotification.m b/SoObjects/Appointments/SOGoAptMailNotification.m index 7073343fc..456349dfc 100644 --- a/SoObjects/Appointments/SOGoAptMailNotification.m +++ b/SoObjects/Appointments/SOGoAptMailNotification.m @@ -24,6 +24,8 @@ #import #import +#import +#import #import #import @@ -182,6 +184,19 @@ return sentByText; } +- (NSTimeInterval) duration +{ + return [[self newEndDate] timeIntervalSinceDate:[self newStartDate]]; +} + +- (BOOL) isEndDateOnSameDay +{ + if ([[self apt] isAllDay]) + return ([self duration] <= 86400); + + return [[self newStartDate] isDateOnSameDay: [self newEndDate]]; +} + - (NSString *) formattedAptStartDate { NSString *s; diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 70db9ef9d..2a6fb5592 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -787,7 +787,7 @@ return; // We never send IMIP inivitaton/deletion/update when the "initiator" is an EAS client. - //That is because Outlook, iOS and Android will always issue a SendMail command + // That is because Outlook, iOS and Android will always issue a SendMail command // with the meeting details (ie., IMIP message with METHOD:REQUEST) so there's // no need to send it twice. Moreover, Outlook users can also choose to NOT send // the IMIP messsage at all, so SOGo won't send one without user's consent diff --git a/UI/MailPartViewers/UIxMailPartICalViewer.m b/UI/MailPartViewers/UIxMailPartICalViewer.m index 88553c7cf..51e665ced 100644 --- a/UI/MailPartViewers/UIxMailPartICalViewer.m +++ b/UI/MailPartViewers/UIxMailPartICalViewer.m @@ -238,21 +238,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 diff --git a/UI/Templates/Appointments/SOGoAptMailInvitation.wox b/UI/Templates/Appointments/SOGoAptMailInvitation.wox index 1e952739a..a95b52194 100644 --- a/UI/Templates/Appointments/SOGoAptMailInvitation.wox +++ b/UI/Templates/Appointments/SOGoAptMailInvitation.wox @@ -24,10 +24,19 @@ th, td { font-family: Lucida Grande, Bitstream VeraSans, Tahoma, sans-serif; fon > - + + + - + + + + + + + + - @@ -37,7 +46,8 @@ th, td { font-family: Lucida Grande, Bitstream VeraSans, Tahoma, sans-serif; fon - - + +