[FIX] mail: localize display date in chatter

This will display the localized date in the chatter.

opw-651625
Closes #9038
This commit is contained in:
Nicolas Martinelli
2015-10-15 15:02:03 +02:00
parent ba9771d6ec
commit 8d4ca3d787
+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 = this.date.toString('ddd MMM dd yyyy HH:mm');
this.display_date = this.date.toString(Date.CultureInfo.formatPatterns.fullDateTime);
if (this.date && new Date().getTime()-this.date.getTime() < 7*24*60*60*1000) {
this.timerelative = $.timeago(this.date);
}