[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:
Jérome Maes
2015-02-19 14:54:35 +01:00
parent 8e7c59f171
commit 9c4c08b5db
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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'],
+1 -1
View File
@@ -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; }));