summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushalspandya@gmail.com>2019-05-03 13:33:57 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-05-03 13:33:57 +0000
commit2e94650bef5208fa494d9e66a5cdc89df2f7a40a (patch)
tree7862cd13ff16b39bb779f6a08bdd277f1e13c04b
parent2dab49019869df1e9ca63319e4b75e40df886b5f (diff)
parent99156dd76048f514dbb26b6d46116d13f726b2c3 (diff)
downloadgitlab-ce-2e94650bef5208fa494d9e66a5cdc89df2f7a40a.tar.gz
Merge branch '59952' into 'master'
Set timezone as GMT in Jest config file Closes #59952 See merge request gitlab-org/gitlab-ce!27738
-rw-r--r--jest.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js
index 0868547e654..84481642250 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -2,6 +2,10 @@ const IS_EE = require('./config/helpers/is_ee_env');
const reporters = ['default'];
+// To have consistent date time parsing both in local and CI environments we set
+// the timezone of the Node process. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27738
+process.env.TZ = 'GMT';
+
if (process.env.CI) {
reporters.push([
'jest-junit',