See ChangeLog

Monotone-Parent: 78bab40835ca73611c47298a0a8de1393cf60c03
Monotone-Revision: c6f02e683516d8272f34a92875af92b45b067767

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-10-15T18:43:28
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2009-10-15 18:43:28 +00:00
parent 052138a069
commit a5cafe30b6
355 changed files with 6093 additions and 7 deletions
+13 -2
View File
@@ -492,11 +492,12 @@
inContext: (WOContext *) _ctx
{
int nbrDays;
[self event];
[super takeValuesFromRequest: _rq inContext: _ctx];
if (isAllDay)
{
nbrDays = ((float) abs ([aptEndDate timeIntervalSinceDate: aptStartDate])
@@ -509,6 +510,16 @@
[event setStartDate: aptStartDate];
[event setEndDate: aptEndDate];
}
if ([[self clientObject] isNew])
{
iCalTimeZone *tz;
tz = [iCalTimeZone timeZoneForName: [[[context activeUser] timeZone] name]];
[[event parent] addTimeZone: tz];
[[event uniqueChildWithTag: @"dtstart"] setTimeZone: tz];
[[event uniqueChildWithTag: @"dtend"] setTimeZone: tz];
}
[event setTransparency: (isTransparent? @"TRANSPARENT" : @"OPAQUE")];
}