summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2019-04-26 15:36:34 +0200
committerFatih Acet <acetfatih@gmail.com>2019-05-02 12:54:55 +0200
commit99156dd76048f514dbb26b6d46116d13f726b2c3 (patch)
treef7ebae8ad714eeedeb09e888315a1ef5beeb8cf1 /jest.config.js
parent26108ddb119a910c4d03cc128f81adb0c0e88cc1 (diff)
downloadgitlab-ce-99156dd76048f514dbb26b6d46116d13f726b2c3.tar.gz
Set timezone to GMT in Jest config59952
Diffstat (limited to 'jest.config.js')
-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',