mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-02 21:52:19 +00:00
(fix) use GMT + adjust bias when querying Exchange's FB info
This commit is contained in:
@@ -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