diff --git a/ChangeLog b/ChangeLog index 894b7f40c..ef507ef48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-19 Francis Lachapelle + + * UI/Scheduler/UIxAppointmentEditor.m + (-startDateIsEqualToEndDate): new method that returns whether or + not the start date is identical to the end date (used for all-day events). + 2009-10-19 Ludovic Marcotte * SoObjects/Appointments/SOGoAppointmentObject.m diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 94be99471..2346764ce 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -185,11 +185,21 @@ return [dateFormatter formattedDateAndTime: aptStartDate]; } +- (NSString *) aptEndDateText +{ + return [dateFormatter formattedDate: aptEndDate]; +} + - (NSString *) aptEndDateTimeText { return [dateFormatter formattedDateAndTime: aptEndDate]; } +- (BOOL) startDateIsEqualToEndDate +{ + return [aptStartDate isEqualToDate: aptEndDate]; +} + /* actions */ - (NSCalendarDate *) newStartDate { diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox index c5a4dd3f3..483ceed31 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox @@ -59,6 +59,11 @@ + + +