Monotone-Parent: 6f1338144b759c9dc200e2c5d7293a054ecf5ebf

Monotone-Revision: cf113a40bd52153bf7981b492915e149294e2c84

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-12-30T16:57:46
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-12-30 16:57:46 +00:00
parent 4df63a393f
commit f6a0ae15c8
3 changed files with 17 additions and 5 deletions
+4
View File
@@ -1,5 +1,9 @@
2008-12-30 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentObject.m
([SOGoAppointmentObject -newOccurenceWithID:]): fixed the start
date when returning an occurrence of an all-day event.
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder
-fixupCycleRecord:cycleRange:firstInstanceCalendarDateRange:forViewRange:]):
+10 -2
View File
@@ -139,13 +139,21 @@
{
iCalEvent *newOccurence;
NSCalendarDate *date;
unsigned int interval;
unsigned int interval, nbrDays;
newOccurence = (iCalEvent *) [super newOccurenceWithID: recID];
date = [newOccurence recurrenceId];
interval = [[newOccurence endDate]
timeIntervalSinceDate: [newOccurence startDate]];
[newOccurence setStartDate: date];
if ([newOccurence isAllDay])
{
nbrDays = ((float) abs (interval) / 86400) + 1;
[newOccurence setAllDayWithStartDate: date
duration: nbrDays];
}
else
[newOccurence setStartDate: date];
[newOccurence setEndDate: [date addYear: 0
month: 0
day: 0
+3 -3
View File
@@ -232,7 +232,7 @@
startDate = [event startDate];
daylightOffset = 0;
if ([co isNew] && [co isKindOfClass: [SOGoAppointmentOccurence class]])
{
// We are creating a new exception in a recurrent event -- compute the daylight
@@ -416,10 +416,10 @@
}
}
data = [NSDictionary dictionaryWithObjectsAndKeys:
[dateFormatter formattedDate: eventDate], @"startDate",
[dateFormatter formattedDate: eventDate], @"startDate",
[dateFormatter formattedTime: eventDate], @"startTime",
([event hasRecurrenceRules]? @"1": @"0"), @"isReccurent",
([event isAllDay] ? @"1": @"0"), @"isAllDay",
([event isAllDay]? @"1": @"0"), @"isAllDay",
[event summary], @"summary",
[event location], @"location",
[event comment], @"description",