Monotone-Parent: 77a1a396ead2722d4c170d71c3f90eb39e0a4eee
Monotone-Revision: fa40d65d7c930f25d8bdbc5eb255f787fa05626f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-07-16T02:21:01 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
bafbffcf6d
commit
c8d8a587b8
|
@ -11,6 +11,7 @@
|
|||
|
||||
* UI/Scheduler/UIxCalListingActions.m
|
||||
(_aptFolder:withClientObject:): removed unused method.
|
||||
(_fixDates:): apply fix also for monthly views.
|
||||
|
||||
* UI/WebServerResources/UIxAppointmentEditor.js
|
||||
(onComposeToAllAttendees): take the status image DIV into account
|
||||
|
|
|
@ -256,23 +256,22 @@ static NSArray *tasksFields = nil;
|
|||
static NSString *fields[] = { @"startDate", @"c_startdate",
|
||||
@"endDate", @"c_enddate" };
|
||||
|
||||
if (dayBasedView)
|
||||
for (count = 0; count < 2; count++)
|
||||
{
|
||||
aDateField = fields[count * 2];
|
||||
aDate = [aRecord objectForKey: aDateField];
|
||||
daylightOffset = (int) ([userTimeZone secondsFromGMTForDate: aDate]
|
||||
- [userTimeZone secondsFromGMTForDate: startDate]);
|
||||
if (daylightOffset)
|
||||
{
|
||||
aDate = [aDate dateByAddingYears: 0 months: 0 days: 0 hours: 0
|
||||
minutes: 0 seconds: daylightOffset];
|
||||
[aRecord setObject: aDate forKey: aDateField];
|
||||
aDateValue = [NSNumber numberWithInt: [aDate timeIntervalSince1970]];
|
||||
[aRecord setObject: aDateValue forKey: fields[count * 2 + 1]];
|
||||
}
|
||||
}
|
||||
|
||||
for (count = 0; count < 2; count++)
|
||||
{
|
||||
aDateField = fields[count * 2];
|
||||
aDate = [aRecord objectForKey: aDateField];
|
||||
daylightOffset = (int) ([userTimeZone secondsFromGMTForDate: aDate]
|
||||
- [userTimeZone secondsFromGMTForDate: startDate]);
|
||||
if (daylightOffset)
|
||||
{
|
||||
aDate = [aDate dateByAddingYears: 0 months: 0 days: 0 hours: 0
|
||||
minutes: 0 seconds: daylightOffset];
|
||||
[aRecord setObject: aDate forKey: aDateField];
|
||||
aDateValue = [NSNumber numberWithInt: [aDate timeIntervalSince1970]];
|
||||
[aRecord setObject: aDateValue forKey: fields[count * 2 + 1]];
|
||||
}
|
||||
}
|
||||
|
||||
aDateValue = [aRecord objectForKey: @"c_recurrence_id"];
|
||||
aDate = [aRecord objectForKey: @"cycleStartDate"];
|
||||
if (aDateValue && aDate)
|
||||
|
|
Loading…
Reference in New Issue