mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-14 08:07:11 +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 parent
4df63a393f
commit
f6a0ae15c8
3 files changed
+17
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user