diff --git a/ChangeLog b/ChangeLog index 9a24e2ee1..03a7b49cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-12-06 Wolfgang Sourdeau + * SoObjects/Appointments/iCalEvent+SOGo.m (-firstOccurrenceRange): + same as below. + * SoObjects/Appointments/SOGoAppointmentFolder.m (_flattenCycleRecord:forRange:intoArray:): reverted to retrieving the event start date using the old and buggy method, adapted to diff --git a/SoObjects/Appointments/iCalEvent+SOGo.m b/SoObjects/Appointments/iCalEvent+SOGo.m index cd4315a50..29fa11dc7 100644 --- a/SoObjects/Appointments/iCalEvent+SOGo.m +++ b/SoObjects/Appointments/iCalEvent+SOGo.m @@ -274,14 +274,19 @@ { NSCalendarDate *start, *end; NGCalendarDateRange *firstRange; + NSArray *dates; firstRange = nil; - start = [self startDate]; - end = [start addTimeInterval: [self occurenceInterval]]; + dates = [[[self uniqueChildWithTag: @"dtstart"] valuesForKey: @""] lastObject]; + if ([dates count] > 0) + { + start = [[dates lastObject] asCalendarDate]; + end = [start addTimeInterval: [self occurenceInterval]]; - firstRange = [NGCalendarDateRange calendarDateRangeWithStartDate: start - endDate: end]; + firstRange = [NGCalendarDateRange calendarDateRangeWithStartDate: start + endDate: end]; + } return firstRange; }