mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 03:38:49 +00:00
Monotone-Parent: 162bfb7c82059f4e5043c0b54c30bbbb18428879
Monotone-Revision: ae07a965b153ba60cbaf086866525dee4f7416ed Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-08T17:00:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
- (void)setCurrentDate:(NSCalendarDate *)_date {
|
||||
[_date setTimeZone:[self viewTimeZone]];
|
||||
[_date setTimeZone:[[self clientObject] userTimeZone]];
|
||||
ASSIGN(self->currentDate, _date);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
{
|
||||
NSTimeZone *tz;
|
||||
|
||||
tz = [self viewTimeZone];
|
||||
tz = [[self clientObject] userTimeZone];
|
||||
self->aptFormatter
|
||||
= [[SOGoAptFormatter alloc] initWithDisplayTimeZone: tz];
|
||||
self->aptTooltipFormatter
|
||||
@@ -295,7 +295,7 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
|
||||
- (void) setCurrentDay:(NSCalendarDate *) _day
|
||||
{
|
||||
[_day setTimeZone: [self viewTimeZone]];
|
||||
[_day setTimeZone: [[self clientObject] userTimeZone]];
|
||||
ASSIGN(self->currentDay, _day);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@
|
||||
canAccessApt = [self canAccessApt];
|
||||
spansRange = NO;
|
||||
startDate = [apt valueForKey:@"startDate"];
|
||||
[startDate setTimeZone:[self viewTimeZone]];
|
||||
[startDate setTimeZone:[[self clientObject] userTimeZone]];
|
||||
endDate = [apt valueForKey:@"endDate"];
|
||||
if(endDate != nil) {
|
||||
[endDate setTimeZone:[self viewTimeZone]];
|
||||
[endDate setTimeZone:[[self clientObject] userTimeZone]];
|
||||
spansRange = ![endDate isEqualToDate:startDate];
|
||||
}
|
||||
aptDescr = [[NSMutableString alloc] init];
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
- (NSCalendarDate *)startDate {
|
||||
return [[[NSCalendarDate alloc] initWithYear:[self year] month:1 day:1
|
||||
hour:0 minute:0 second:0
|
||||
timeZone:[self viewTimeZone]] autorelease];
|
||||
timeZone:[[self clientObject] userTimeZone]] autorelease];
|
||||
}
|
||||
- (NSCalendarDate *)endDate {
|
||||
return nil;
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
hour:_hour
|
||||
minute:_minute
|
||||
second:_second
|
||||
timeZone:[self viewTimeZone]];
|
||||
timeZone: [[self clientObject] userTimeZone]];
|
||||
[self _setDate:d];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user