Monotone-Parent: 86da832914b740fbc3a80b28be7c9ec5a3510fe1
Monotone-Revision: dedd03390a80d0dd2deb9021e1f8f52cb52be8e6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-17T22:26:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
3f1883d2f3
commit
bdfab57952
|
@ -1,5 +1,10 @@
|
|||
2006-11-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
|
||||
-userTimeZone:username]): new method that returns the timezone for
|
||||
the specified user depending on his preferences and the server
|
||||
defaults.
|
||||
|
||||
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
|
||||
-stringForData:partInfo:]): take the encoding into account and
|
||||
translate the text to "normal" before processing the charset data.
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#import "SOGoUser.h"
|
||||
#import "SOGoObject.h"
|
||||
#import "SOGoUserFolder.h"
|
||||
#import "AgenorUserManager.h"
|
||||
#import <NGObjWeb/WEClientCapabilities.h>
|
||||
#import <NGObjWeb/SoObject+SoDAV.h>
|
||||
#import "common.h"
|
||||
|
@ -414,6 +415,20 @@ static NSTimeZone *serverTimeZone = nil;
|
|||
return userTimeZone;
|
||||
}
|
||||
|
||||
- (NSTimeZone *) userTimeZone: (NSString *) username
|
||||
{
|
||||
NSUserDefaults *userPrefs;
|
||||
AgenorUserManager *am;
|
||||
|
||||
am = [AgenorUserManager sharedUserManager];
|
||||
userPrefs = [am getUserDefaultsForUID: username];
|
||||
userTimeZone = [NSTimeZone timeZoneWithName: [userPrefs stringForKey: @"timezonename"]];
|
||||
if (!userTimeZone)
|
||||
userTimeZone = [self serverTimeZone];
|
||||
|
||||
return userTimeZone;
|
||||
}
|
||||
|
||||
/* description */
|
||||
|
||||
- (void)appendAttributesToDescription:(NSMutableString *)_ms {
|
||||
|
|
Loading…
Reference in a new issue