Skip to content
Snippets Groups Projects
Commit 6eba2582 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] mail: localized time

Time is now localized in the discussion.
parent 521b90a8
No related branches found
No related tags found
No related merge requests found
......@@ -119,10 +119,10 @@ var Thread = Widget.extend({
msg.hour = msg.date.fromNow();
} else if (date === moment().subtract(1, 'days').format('YYYY-MM-DD')) {
msg.day = _t("Yesterday");
msg.hour = msg.date.format('hh:mm');
msg.hour = msg.date.format('LT');
} else {
msg.day = msg.date.format('LL');
msg.hour = msg.date.format('hh:mm');
msg.hour = msg.date.format('LT');
}
msg.display_subject = message.subject && message.message_type !== 'notification' && !(message.model && (message.model !== 'mail.channel'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment