[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)
This commit is contained in:
Christophe Matthieu
2017-10-26 09:12:23 +02:00
parent ffa4646af7
commit e2190860a6
@@ -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', {