mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-18 14:11:21 +00:00
(fix) use GMT + adjust bias when querying Exchange's FB info
This commit is contained in:
1 parent
35a3a8ef1d
commit
d2e03386d2
4 files changed
+31
-18
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2012 Inverse inc.
|
||||
Copyright (C) 2012-2016 Inverse inc.
|
||||
|
||||
This file is part of SOGo.
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#import <SOGo/NSDictionary+Utilities.h>
|
||||
#import <SOGo/NSObject+Utilities.h>
|
||||
#import <SOGo/NSString+Utilities.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
|
||||
#import "MSExchangeFreeBusySOAPRequest.h"
|
||||
|
||||
@@ -110,4 +112,15 @@
|
||||
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
|
||||
Reference in new issue
Block a user