mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Monotone-Parent: 94a876e445d85c07068605284844c8c23125a590
Monotone-Revision: a2a755bb974fa1ddef5662d996422c2b90023444 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-07-17T17:26:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -71,10 +71,22 @@ static BOOL debugOn = YES;
|
||||
|
||||
/* configuration */
|
||||
|
||||
- (NSTimeZone *)timeZone {
|
||||
- (NSTimeZone *)timeZone
|
||||
{
|
||||
return self->timeZone;
|
||||
}
|
||||
|
||||
- (void) setTimeZone: (NSTimeZone *) newTimeZone
|
||||
{
|
||||
if (timeZone)
|
||||
[timeZone release];
|
||||
|
||||
timeZone = newTimeZone;
|
||||
|
||||
if (timeZone)
|
||||
[timeZone retain];
|
||||
}
|
||||
|
||||
- (BOOL)showOnlyTimeForToday {
|
||||
return self->dfFlags.showOnlyTimeForToday ? YES : NO;
|
||||
}
|
||||
@@ -101,7 +113,7 @@ static BOOL debugOn = YES;
|
||||
[self->now setTimeZone:[self timeZone]];
|
||||
}
|
||||
[_date setTimeZone:[self timeZone]];
|
||||
|
||||
|
||||
if ([self showOnlyTimeForToday] && [_date isDateOnSameDay:self->now])
|
||||
return [self stringForTime:_date prefix:NULL];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user