From 9857917de79fd1f9aa29722d093ec7834d8ac656 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 12 Jun 2007 15:38:48 +0000 Subject: [PATCH] Monotone-Parent: 41c549a27b33b99df942c4323fe0f13a3685b452 Monotone-Revision: 6eaf6174c29120b42c4617db2b95738f6ff7ce29 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-12T15:38:48 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/SOGoUI/SOGoDateFormatter.h | 1 + UI/SOGoUI/SOGoDateFormatter.m | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 042288549..3f7d0c27f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-06-12 Wolfgang Sourdeau + * UI/SOGoUI/SOGoDateFormatter.m ([SOGoDateFormatter + -stringForSecondsSinceThe70s:seconds]): new utility method. + * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsListAction]): no longer reduce the end day of one day for all day events since everything has been fixed in diff --git a/UI/SOGoUI/SOGoDateFormatter.h b/UI/SOGoUI/SOGoDateFormatter.h index 4d460294d..2e084842b 100644 --- a/UI/SOGoUI/SOGoDateFormatter.h +++ b/UI/SOGoUI/SOGoDateFormatter.h @@ -41,6 +41,7 @@ - (void)setFullWeekdayNameAndDetails; - (NSString *)stringForObjectValue:(id)_obj; +- (NSString *) stringForSecondsSinceThe70s: (unsigned int) seconds; - (NSString *)shortDayOfWeek:(int)_day; - (NSString *)fullDayOfWeek:(int)_day; diff --git a/UI/SOGoUI/SOGoDateFormatter.m b/UI/SOGoUI/SOGoDateFormatter.m index c64aca820..c618be415 100644 --- a/UI/SOGoUI/SOGoDateFormatter.m +++ b/UI/SOGoUI/SOGoDateFormatter.m @@ -58,11 +58,18 @@ /* operation */ -- (NSString *)stringForObjectValue:(id)_obj { +- (NSString *) stringForObjectValue: (id) _obj +{ return [self performSelector:self->formatAction withObject:_obj]; } +- (NSString *) stringForSecondsSinceThe70s: (unsigned int) seconds +{ + return [self stringForObjectValue: + [NSCalendarDate dateWithTimeIntervalSince1970: seconds]]; +} + /* Helpers */ - (NSString *)shortDayOfWeek:(int)_day {