mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-06 10:59:44 +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:
@@ -1,5 +1,8 @@
|
||||
2006-07-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/MailerUI/UIxMailFormatter.m ([UIxMailDateFormatter
|
||||
-setTimeZone:newTimeZone]): new accessor to specify the timezone.
|
||||
|
||||
* UI/MailerUI/UIxMailFilterPanel.m ([UIxMailFilterPanel -setSearchCriteria:])
|
||||
([UIxMailFilterPanel -searchCriteria]): new methods, similar to
|
||||
s/Criteria/Text/ to handle the "criteria" form parameter.
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
/* configuration */
|
||||
|
||||
- (NSTimeZone *)timeZone;
|
||||
- (void) setTimeZone: (NSTimeZone *) newTimeZone;
|
||||
|
||||
- (BOOL)showOnlyTimeForToday;
|
||||
- (BOOL)showLabelsForNearDays;
|
||||
|
||||
|
||||
@@ -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