summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-02-01 09:40:13 +0100
committerChristophe Matthieu <chm@openerp.com>2013-02-01 09:40:13 +0100
commit4e1f2c81ea0e88ab1b53b5e43efaf06e54ba2d87 (patch)
tree14a997e5de7053bedc7e2f3024086cb93aae7a33 /addons/mail/static/src/js
parent925e7456b11c94067c71ddf784a081168beab5fc (diff)
[FIX] mail: Date.parse with a split for allow date format with micro sec
bzr revid: chm@openerp.com-20130201084013-eia7803w15is8ywt
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/mail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index 0c22e3e6f8b..bd1711d3fae 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -243,7 +243,7 @@ openerp.mail = function (session) {
/* Convert date, timerelative and avatar in displayable data. */
format_data: function () {
//formating and add some fields for render
- if (this.date && new Date().getTime()-Date.parse(this.date).getTime() < 7*24*60*60*1000) {
+ if (this.date && new Date().getTime()-Date.parse((this.date+'').split('.')[0]).getTime() < 7*24*60*60*1000) {
this.timerelative = $.timeago(this.date+"Z");
}
if (this.type == 'email' && (!this.author_id || !this.author_id[0])) {