mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 20:35:24 +00:00
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:
@@ -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:]):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user