mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-31 11:17:17 +00:00
(fix) 30 mins offset in FB
This commit is contained in:
committed by
Francis Lachapelle
parent
ef32b0c277
commit
ff43324644
@@ -2682,6 +2682,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];
|
||||||
@@ -2728,17 +2729,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++)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2756,11 +2753,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>"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user