[IMP] Fix the timeagolib timezone conversion and passing timezone datetime string
bzr revid: jam@tinyerp.com-20121120060030-33w2u9v72kazd3ns
This commit is contained in:
@@ -270,11 +270,9 @@ 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) {
|
||||
this.date = session.web.format_value(this._date, {type:"datetime"});
|
||||
this.timerelative = $.timeago(this._date);
|
||||
this.timerelative = $.timeago(this._date+"Z");
|
||||
}
|
||||
if (this.type == 'email' && (!this.author_id || !this.author_id[0])) {
|
||||
this.avatar = ('/mail/static/src/img/email_icon.png');
|
||||
|
||||
Reference in New Issue
Block a user