(fix) 30 mins offset in FB
parent
5ecf917e6b
commit
3adbef5aa4
|
@ -2653,6 +2653,7 @@ void handle_eas_terminate(int signum)
|
||||||
NSData *d;
|
NSData *d;
|
||||||
|
|
||||||
unsigned int startdate, enddate, increments;
|
unsigned int startdate, enddate, increments;
|
||||||
|
NGCalendarDateRange *r1, *r2;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
startDate = [[[(id)[theDocumentElement getElementsByTagName: @"StartTime"] lastObject] textValue] calendarDate];
|
startDate = [[[(id)[theDocumentElement getElementsByTagName: @"StartTime"] lastObject] textValue] calendarDate];
|
||||||
|
@ -2699,17 +2700,13 @@ void handle_eas_terminate(int signum)
|
||||||
folder = [user personalCalendarFolderInContext: context];
|
folder = [user personalCalendarFolderInContext: context];
|
||||||
freebusy = [folder fetchFreeBusyInfosFrom: startDate to: endDate];
|
freebusy = [folder fetchFreeBusyInfosFrom: startDate to: endDate];
|
||||||
|
|
||||||
|
for (j = 0; j < increments; j++)
|
||||||
NGCalendarDateRange *r1, *r2;
|
|
||||||
|
|
||||||
for (j = 1; j <= increments; j++)
|
|
||||||
{
|
{
|
||||||
c = '0';
|
c = '0';
|
||||||
|
|
||||||
r1 = [NGCalendarDateRange calendarDateRangeWithStartDate: [NSDate dateWithTimeIntervalSince1970: (startdate+j*30*60)]
|
r1 = [NGCalendarDateRange calendarDateRangeWithStartDate: [NSDate dateWithTimeIntervalSince1970: (startdate+j*30*60)]
|
||||||
endDate: [NSDate dateWithTimeIntervalSince1970: (startdate+j*30*60 + 30)]];
|
endDate: [NSDate dateWithTimeIntervalSince1970: (startdate+j*30*60 + 30)]];
|
||||||
|
|
||||||
|
|
||||||
for (k = 0; k < [freebusy count]; k++)
|
for (k = 0; k < [freebusy count]; k++)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -2727,11 +2724,8 @@ void handle_eas_terminate(int signum)
|
||||||
[s appendFormat: @"%c", c];
|
[s appendFormat: @"%c", c];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[s appendString: @"</MergedFreeBusy>"];
|
[s appendString: @"</MergedFreeBusy>"];
|
||||||
[s appendString: @"</Availability>"];
|
[s appendString: @"</Availability>"];
|
||||||
|
|
||||||
|
|
||||||
[s appendString: @"</Recipient>"];
|
[s appendString: @"</Recipient>"];
|
||||||
[s appendString: @"</Response>"];
|
[s appendString: @"</Response>"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue