diff --git a/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m b/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m index 4e510999a..029c5a835 100644 --- a/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m +++ b/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m @@ -119,7 +119,7 @@ NGCalendarDateRange *checkRange, *firstRange; NSCalendarDate *startDate, *endDate; NSTimeZone *timeZone; - id *firstStartDate, firstEndDate; + id firstStartDate, firstEndDate; iCalTimeZone *eventTimeZone; BOOL doesOccur; int offset; @@ -131,8 +131,8 @@ firstRange = [self firstOccurenceRange]; // Set the range to check with respect to the event timezone (extracted from the start date) - firstStartDate = [self uniqueChildWithTag: @"dtstart"]; - eventTimeZone = [(iCalDateTime *)firstStartDate timeZone]; + firstStartDate = (iCalDateTime*) [self uniqueChildWithTag: @"dtstart"]; + eventTimeZone = [(iCalDateTime*) firstStartDate timeZone]; if (eventTimeZone) startDate = [eventTimeZone computedDateForDate: theOccurenceDate]; else @@ -144,12 +144,12 @@ // to the occurence's timezone. timeZone = [theOccurenceDate timeZone]; offset = [timeZone secondsFromGMTForDate: [firstRange startDate]]; - firstStartDate = (NSCalendarDate*)[[firstRange startDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 - seconds:-offset]; - firstEndDate = (NSCalendarDate*)[[firstRange endDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 - seconds:-offset]; - [firstStartDate setTimeZone: timeZone]; - [firstEndDate setTimeZone: timeZone]; + firstStartDate = (NSCalendarDate*) [[firstRange startDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 + seconds:-offset]; + firstEndDate = (NSCalendarDate*) [[firstRange endDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 + seconds:-offset]; + [(NSCalendarDate*) firstStartDate setTimeZone: timeZone]; + [(NSCalendarDate*) firstEndDate setTimeZone: timeZone]; firstRange = [NGCalendarDateRange calendarDateRangeWithStartDate: firstStartDate endDate: firstEndDate]; }