Monotone-Parent: d8549ba070887e4694d144719b284413458362d9

Monotone-Revision: f74baefe5e3f0349c95467a779b6791335eb0e19

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-27T16:00:18
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-27 16:00:18 +00:00
parent 18d64eeed6
commit 3a5eaf6c2f
2 changed files with 14 additions and 18 deletions
+10 -10
View File
@@ -271,16 +271,7 @@
iCalRecurrenceRule *rule;
[self event];
if (event)
{
startDate = [event startDate];
isAllDay = [event isAllDay];
if (isAllDay)
endDate = [[event endDate] dateByAddingYears: 0 months: 0 days: -1];
else
endDate = [event endDate];
}
else
if ([[self clientObject] isNew])
{
startDate = [self newStartDate];
duration = [self queryParameterForKey:@"dur"];
@@ -292,6 +283,15 @@
= [startDate dateByAddingYears: 0 months: 0 days: 0
hours: 0 minutes: minutes seconds: 0];
}
else
{
startDate = [event startDate];
isAllDay = [event isAllDay];
if (isAllDay)
endDate = [[event endDate] dateByAddingYears: 0 months: 0 days: -1];
else
endDate = [event endDate];
}
ASSIGN (aptStartDate, startDate);
ASSIGN (aptEndDate, endDate);