Monotone-Parent: b6726f7b87c51426fc4fa2e3ed33d20cb47a89e0

Monotone-Revision: f638868d7db65b1617476f06e76394a24bca8310

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-01-14T19:07:43
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-01-14 19:07:43 +00:00
parent db851140d4
commit ab94153bfc
3 changed files with 31 additions and 24 deletions
@@ -130,7 +130,10 @@
// Set the range to check with respect to the event timezone (extracted from the start date)
firstStartDate = (iCalDateTime *)[self uniqueChildWithTag: @"dtstart"];
eventTimeZone = [firstStartDate timeZone];
startDate = [eventTimeZone computedDateForDate: theOccurenceDate];
if (eventTimeZone)
startDate = [eventTimeZone computedDateForDate: theOccurenceDate];
else
startDate = theOccurenceDate;
endDate = [startDate addTimeInterval: [self occurenceInterval]];
checkRange = [NGCalendarDateRange calendarDateRangeWithStartDate: startDate
endDate: endDate];