Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / mail / static / src / js / mail.js
index 46e1cea..62268de 100644 (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(this.date).format('ddd MMM DD YYYY LT');
+            this.display_date = moment(new Date(this.date)).format('ddd MMM DD YYYY LT');
             if (this.date && new Date().getTime()-this.date.getTime() < 7*24*60*60*1000) {
                 this.timerelative = $.timeago(this.date);
             }