[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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user