[FIX] web: use correct timezone for date fields

before this commit when toggling allday flag in calendar form view, it was
possible to have one day error.

The input datetime is wrong when the user don't use the datepicker widget
 (insert date by keypress instead of click on datepicker)

sometimes, the value could be null (crash because try to clone false)
This commit is contained in:
Christophe Matthieu
2017-04-19 14:48:06 +02:00
parent 7ff8aa73e1
commit 69ae6e2912
5 changed files with 204 additions and 92 deletions
@@ -1041,7 +1041,10 @@ QUnit.module('basic_fields', {
'</tree>',
translateParameters: { // Avoid issues due to localization formats
date_format: '%m/%d/%Y',
}
},
session: {
tzOffset: 0
},
});
var $cell = list.$('tr.o_data_row td:not(.o_list_record_selector)').first();