From e2190860a6bbd79dbd4ec8139c04b4b9d64c90e5 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 25 Oct 2017 10:31:01 -0400 Subject: [PATCH] [FIX] web: calendar tests are good in US timezone Calendar tests did not go into US for a timezone problem, making it more difficult to correct errors. To do: pass all the tests js in US (with simplification for the calculations of the times) --- addons/web/static/tests/views/calendar_tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/tests/views/calendar_tests.js b/addons/web/static/tests/views/calendar_tests.js index 8d41fba39e3..31d30632da0 100644 --- a/addons/web/static/tests/views/calendar_tests.js +++ b/addons/web/static/tests/views/calendar_tests.js @@ -21,7 +21,8 @@ CalendarRenderer.include({ var createView = testUtils.createView; -var initialDate = new Date("2016-12-12T08:00:00Z"); +var initialDate = new Date(2016, 11, 12, 8, 0, 0); +initialDate = new Date(initialDate.getTime() - initialDate.getTimezoneOffset()*60*1000); QUnit.module('Views', {