[FIX] mail: localize display date in chatter

This will display the localized date in the chatter.

opw-651625
Related to #9038
This commit is contained in:
Nicolas Martinelli
2015-10-15 14:10:29 +02:00
parent 0239d1b357
commit 16f3e3c87e
+1 -1
View File
@@ -218,7 +218,7 @@ openerp.mail = function (session) {
//formating and add some fields for render
this.date = this.date ? session.web.str_to_datetime(this.date) : false;
this.display_date = moment(new Date(this.date)).format('ddd MMM DD YYYY LT');
this.display_date = moment(new Date(this.date)).format('llll');
if (this.date && new Date().getTime()-this.date.getTime() < 7*24*60*60*1000) {
this.timerelative = $.timeago(this.date);
}