From 69ae6e2912aaf6190d9856f04069d725ef5ad5a4 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 18 Apr 2017 14:24:04 +0200 Subject: [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) --- addons/web/static/tests/fields/basic_fields_tests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addons/web/static/tests/fields/basic_fields_tests.js') diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js index 7d7aabb5617..1dd84ce3dd4 100644 --- a/addons/web/static/tests/fields/basic_fields_tests.js +++ b/addons/web/static/tests/fields/basic_fields_tests.js @@ -1041,7 +1041,10 @@ QUnit.module('basic_fields', { '', 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(); -- cgit v1.2.3