[FIX] im_chat : displayed date was in UTC, now using openerp.str_to_datetime to set it in the browser timezone. Also add missing data file in manifest.
This commit is contained in:
@@ -19,6 +19,7 @@ chat in real time. It support several chats in parallel.
|
||||
'security/ir.model.access.csv',
|
||||
'security/im_security.xml',
|
||||
'views/im_chat.xml',
|
||||
'im_chat_data.xml',
|
||||
],
|
||||
'depends' : ['base', 'web', 'bus'],
|
||||
'qweb': ['static/src/xml/*.xml'],
|
||||
|
||||
@@ -344,7 +344,7 @@
|
||||
if(!m.from_id){
|
||||
m.from_id = [false, get_anonymous_name()];
|
||||
}
|
||||
m.create_date = moment.utc(m.create_date).format('YYYY-MM-DD HH:mm:ss');
|
||||
m.create_date = moment(openerp.str_to_datetime(m.create_date)).format('YYYY-MM-DD HH:mm:ss');
|
||||
return m;
|
||||
});
|
||||
this.set("messages", _.sortBy(this.get("messages").concat(messages), function(m){ return m.id; }));
|
||||
|
||||
Reference in New Issue
Block a user