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 {