diff --git a/NEWS b/NEWS index 9fc0d65ce5..39374cc501 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ Enhancements - [web] show source addressbook of matching contacts in appointment editor (#4579) - [web] improve display of keyboard shortcuts + - [web] show time for messages of yesterday (#4599) Bug fixes - [sogo-tool] fixed "manage-acl unsubscribe" command (#4591) diff --git a/UI/MailerUI/UIxMailListActions.m b/UI/MailerUI/UIxMailListActions.m index 293473291f..9b6d101499 100644 --- a/UI/MailerUI/UIxMailListActions.m +++ b/UI/MailerUI/UIxMailListActions.m @@ -126,14 +126,13 @@ - (NSString *) messageDate else if ([now dayOfCommonEra] - [messageDate dayOfCommonEra] == 1) { // Yesterday - return [self labelForKey: @"Yesterday" inContext: context]; + return [NSString stringWithFormat: @"%@ %@", + [self labelForKey: @"Yesterday" inContext: context], + [dateFormatter formattedTime: messageDate]]; } else if ([now dayOfCommonEra] - [messageDate dayOfCommonEra] < 7) { // Same week - WOResourceManager *resMgr = [[WOApplication application] resourceManager]; - NSString *language = [[[context activeUser] userDefaults] language]; - NSDictionary *locale = [resMgr localeForLanguageNamed: language]; return [[locale objectForKey: NSWeekDayNameArray] objectAtIndex: [messageDate dayOfWeek]]; } else