[FIX] Dates on message are now displayed according to the user timezone.

bzr revid: tde@openerp.com-20120419085838-awmxdqjbsb8qyi38
This commit is contained in:
Thibault Delavallée 2012-04-19 10:58:38 +02:00
parent 4b9dfed786
commit 8ef72c59e6
1 changed files with 2 additions and 0 deletions

View File

@ -275,6 +275,8 @@ openerp.mail = function(session) {
record.tr_body = this.do_truncate_string(record.body, this.params.msg_more_limit);
record.body = this.do_replace_internal_links(record.body);
if (record.tr_body) record.tr_body = this.do_replace_internal_links(record.tr_body);
// format date according to the user timezone
record.date = session.web.format_value(record.date, {type:"datetime"});
// render
$(session.web.qweb.render('ThreadMsg', {'record': record, 'thread': this, 'params': this.params, 'display': this.display})
).appendTo(this.$element.children('div.oe_mail_thread_display:first'));