Monotone-Parent: c33c456b52c6e6d4ee1f29bfd9ca57096b8d13be

Monotone-Revision: 5539e3c473023281dd04f7cb8a8fee051ac0735d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-11T19:08:58
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-11 19:08:58 +00:00
parent 828d3b2818
commit e09ac2e383
32 changed files with 350 additions and 616 deletions
+10 -11
View File
@@ -43,17 +43,16 @@ static BOOL shouldDisplayWeekend = NO;
self = [super init];
if (self)
{
NSTimeZone *tz;
tz = [[self clientObject] userTimeZone];
timeZone = [[context activeUser] timeZone];
[timeZone retain];
aptFormatter
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: tz];
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: timeZone];
aptTooltipFormatter
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: tz];
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: timeZone];
privateAptFormatter
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: tz];
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: timeZone];
privateAptTooltipFormatter
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: tz];
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: timeZone];
[self configureFormatters];
componentsData = [NSMutableDictionary new];
}
@@ -72,6 +71,7 @@ static BOOL shouldDisplayWeekend = NO;
[aptTooltipFormatter release];
[privateAptFormatter release];
[privateAptTooltipFormatter release];
[timeZone release];
[super dealloc];
}
@@ -322,8 +322,8 @@ static BOOL shouldDisplayWeekend = NO;
- (void) setCurrentDay:(NSCalendarDate *) _day
{
[_day setTimeZone: [[self clientObject] userTimeZone]];
ASSIGN(currentDay, _day);
[_day setTimeZone: timeZone];
ASSIGN (currentDay, _day);
}
- (NSCalendarDate *) currentDay
@@ -478,8 +478,7 @@ static BOOL shouldDisplayWeekend = NO;
clientObject = [self clientObject];
folders = [[clientObject calendarFoldersInContext: context]
objectEnumerator];
folders = [[clientObject calendarFolders] objectEnumerator];
currentFolderDict = [folders nextObject];
while (currentFolderDict)
{