From 8d4ca3d787488142304a308d7b66ee6747ed4fb0 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 15 Oct 2015 13:56:27 +0200 Subject: [PATCH] [FIX] mail: localize display date in chatter This will display the localized date in the chatter. opw-651625 Closes #9038 --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 91e766c3618..6b54641728e 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -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); }