(web) Show time for messages from past week

Fixes #4599
This commit is contained in:
Francis Lachapelle
2019-01-11 16:20:35 -05:00
parent ca886aa662
commit f925be6137

View File

@@ -133,7 +133,9 @@
else if ([now dayOfCommonEra] - [messageDate dayOfCommonEra] < 7)
{
// Same week
return [[locale objectForKey: NSWeekDayNameArray] objectAtIndex: [messageDate dayOfWeek]];
return [NSString stringWithFormat: @"%@ %@",
[[locale objectForKey: NSWeekDayNameArray] objectAtIndex: [messageDate dayOfWeek]],
[dateFormatter formattedTime: messageDate]];
}
else
{