diff --git a/gulpfile.js b/gulpfile.js index 291778226..27900e52d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1521,6 +1521,10 @@ gulp.task( gulp.task("testing-pre", function (done) { process.env.TESTING = "true"; + // TODO: Re-write the relevant unit-tests, which are using `new Date(...)`, + // to not required the following time-zone hack since it doesn't work + // when the unit-tests are run directly in the browser. + process.env.TZ = "UTC"; done(); }); @@ -1576,7 +1580,6 @@ gulp.task( gulp.task( "unittest", gulp.series("testing-pre", "generic", "components", function () { - process.env.TZ = "UTC"; return createTestSource("unit"); }) );