Monotone-Parent: ec19e489c1141c5a5e5a204abf81543a2ff2f463

Monotone-Revision: 9d86e187092bc677ee3ceb2cb3b127b1510b076f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-30T23:11:12
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-08-30 23:11:12 +00:00
parent 3256d8463d
commit 79c7a7ef2a
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,9 @@
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/SOGoAppointmentObject.m

View File

@ -22,7 +22,9 @@
#import "SOGoUserFolder.h"
#import "WOContext+Agenor.h"
#import "common.h"
#import "SOGoUser.h"
#import "Appointments/SOGoAppointmentFolder.h"
#import "Contacts/SOGoContactFolders.h"
@implementation SOGoUserFolder
@ -86,6 +88,8 @@
- (id)privateCalendar:(NSString *)_key inContext:(id)_ctx {
static Class calClass = Nil;
id calendar;
NSUserDefaults *userPrefs;
NSTimeZone *timeZone;
if (calClass == Nil)
calClass = NSClassFromString(@"SOGoAppointmentFolder");
@ -93,9 +97,14 @@
[self errorWithFormat:@"missing SOGoAppointmentFolder class!"];
return nil;
}
calendar = [[calClass alloc] initWithName:_key inContainer:self];
[calendar setOCSPath:[self ocsPrivateCalendarPath]];
userPrefs = [[_ctx activeUser] userDefaults];
timeZone = [NSTimeZone
timeZoneWithName: [userPrefs stringForKey: @"timezonename"]];
[calendar setTimeZone: timeZone];
return [calendar autorelease];
}