mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 13:43:22 +00:00
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:
@@ -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")];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user