Monotone-Parent: ec19e489c1141c5a5e5a204abf81543a2ff2f463
Monotone-Revision: 9d86e187092bc677ee3ceb2cb3b127b1510b076f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-30T23:11:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
3256d8463d
commit
79c7a7ef2a
|
@ -1,5 +1,9 @@
|
||||||
2006-08-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2006-08-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
|
||||||
|
-privateContacts:inContext:]): init the SOGoAppointmentFolder's
|
||||||
|
timezone by taking the current user's timezone setting.
|
||||||
|
|
||||||
* SoObjects/Appointments/SOGoAptMailNotification.m: same as below.
|
* SoObjects/Appointments/SOGoAptMailNotification.m: same as below.
|
||||||
|
|
||||||
* SoObjects/Appointments/SOGoAppointmentObject.m
|
* SoObjects/Appointments/SOGoAppointmentObject.m
|
||||||
|
|
|
@ -22,7 +22,9 @@
|
||||||
#import "SOGoUserFolder.h"
|
#import "SOGoUserFolder.h"
|
||||||
#import "WOContext+Agenor.h"
|
#import "WOContext+Agenor.h"
|
||||||
#import "common.h"
|
#import "common.h"
|
||||||
|
#import "SOGoUser.h"
|
||||||
|
|
||||||
|
#import "Appointments/SOGoAppointmentFolder.h"
|
||||||
#import "Contacts/SOGoContactFolders.h"
|
#import "Contacts/SOGoContactFolders.h"
|
||||||
|
|
||||||
@implementation SOGoUserFolder
|
@implementation SOGoUserFolder
|
||||||
|
@ -86,6 +88,8 @@
|
||||||
- (id)privateCalendar:(NSString *)_key inContext:(id)_ctx {
|
- (id)privateCalendar:(NSString *)_key inContext:(id)_ctx {
|
||||||
static Class calClass = Nil;
|
static Class calClass = Nil;
|
||||||
id calendar;
|
id calendar;
|
||||||
|
NSUserDefaults *userPrefs;
|
||||||
|
NSTimeZone *timeZone;
|
||||||
|
|
||||||
if (calClass == Nil)
|
if (calClass == Nil)
|
||||||
calClass = NSClassFromString(@"SOGoAppointmentFolder");
|
calClass = NSClassFromString(@"SOGoAppointmentFolder");
|
||||||
|
@ -96,6 +100,11 @@
|
||||||
|
|
||||||
calendar = [[calClass alloc] initWithName:_key inContainer:self];
|
calendar = [[calClass alloc] initWithName:_key inContainer:self];
|
||||||
[calendar setOCSPath:[self ocsPrivateCalendarPath]];
|
[calendar setOCSPath:[self ocsPrivateCalendarPath]];
|
||||||
|
|
||||||
|
userPrefs = [[_ctx activeUser] userDefaults];
|
||||||
|
timeZone = [NSTimeZone
|
||||||
|
timeZoneWithName: [userPrefs stringForKey: @"timezonename"]];
|
||||||
|
[calendar setTimeZone: timeZone];
|
||||||
return [calendar autorelease];
|
return [calendar autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue