(fix) use GMT + adjust bias when querying Exchange's FB info
parent
35a3a8ef1d
commit
d2e03386d2
|
@ -1,6 +1,6 @@
|
||||||
/* MSExchangeFreeBusy.m - this file is part of SOGo
|
/* MSExchangeFreeBusy.m - this file is part of SOGo
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012-2014 Inverse inc.
|
* Copyright (C) 2012-2016 Inverse inc.
|
||||||
*
|
*
|
||||||
* This file is free software; you can redistribute it and/or modify
|
* This file is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2012 Inverse inc.
|
Copyright (C) 2012-2016 Inverse inc.
|
||||||
|
|
||||||
This file is part of SOGo.
|
This file is part of SOGo.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2012 Inverse inc.
|
Copyright (C) 2012-2016 Inverse inc.
|
||||||
|
|
||||||
This file is part of SOGo.
|
This file is part of SOGo.
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@
|
||||||
#import <SOGo/NSDictionary+Utilities.h>
|
#import <SOGo/NSDictionary+Utilities.h>
|
||||||
#import <SOGo/NSObject+Utilities.h>
|
#import <SOGo/NSObject+Utilities.h>
|
||||||
#import <SOGo/NSString+Utilities.h>
|
#import <SOGo/NSString+Utilities.h>
|
||||||
|
#import <SOGo/SOGoUser.h>
|
||||||
|
#import <SOGo/SOGoUserDefaults.h>
|
||||||
|
|
||||||
#import "MSExchangeFreeBusySOAPRequest.h"
|
#import "MSExchangeFreeBusySOAPRequest.h"
|
||||||
|
|
||||||
|
@ -110,4 +112,15 @@
|
||||||
return [NSString stringWithFormat: @"%i", interval];
|
return [NSString stringWithFormat: @"%i", interval];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *) bias
|
||||||
|
{
|
||||||
|
NSTimeZone *userTimeZone;
|
||||||
|
NSInteger secs;
|
||||||
|
|
||||||
|
userTimeZone = [[[context activeUser] userDefaults] timeZone];
|
||||||
|
secs = [userTimeZone secondsFromGMT];
|
||||||
|
|
||||||
|
return [NSString stringWithFormat: @"%i", (secs/60)];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -7,21 +7,21 @@
|
||||||
<GetUserAvailabilityRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
|
<GetUserAvailabilityRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
|
||||||
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
|
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
|
||||||
<t:TimeZone xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
|
<t:TimeZone xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
|
||||||
<Bias>0</Bias>
|
<Bias><#bias/></Bias>
|
||||||
<StandardTime>
|
<StandardTime>
|
||||||
<Bias>0</Bias>
|
<Bias>0</Bias>
|
||||||
<Time>00:00:00</Time>
|
<Time>02:00:00</Time>
|
||||||
<DayOrder>1</DayOrder>
|
<DayOrder>1</DayOrder>
|
||||||
<Month>1</Month>
|
<Month>11</Month>
|
||||||
<DayOfWeek>Sunday</DayOfWeek>
|
<DayOfWeek>Sunday</DayOfWeek>
|
||||||
</StandardTime>
|
</StandardTime>
|
||||||
<DaylightTime>
|
<DaylightTime>
|
||||||
<Bias>0</Bias>
|
<Bias>-60</Bias>
|
||||||
<Time>00:00:00</Time>
|
<Time>02:00:00</Time>
|
||||||
<DayOrder>1</DayOrder>
|
<DayOrder>2</DayOrder>
|
||||||
<Month>1</Month>
|
<Month>3</Month>
|
||||||
<DayOfWeek>Sunday</DayOfWeek>
|
<DayOfWeek>Sunday</DayOfWeek>
|
||||||
</DaylightTime>
|
</DaylightTime>
|
||||||
</t:TimeZone>
|
</t:TimeZone>
|
||||||
<MailboxDataArray>
|
<MailboxDataArray>
|
||||||
<t:MailboxData>
|
<t:MailboxData>
|
||||||
|
|
Loading…
Reference in New Issue