Skip to content

Commit 99156dd

Browse files
committed
Set timezone to GMT in Jest config
1 parent 26108dd commit 99156dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jest.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ const IS_EE = require('./config/helpers/is_ee_env');
22

33
const reporters = ['default'];
44

5+
// To have consistent date time parsing both in local and CI environments we set
6+
// the timezone of the Node process. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27738
7+
process.env.TZ = 'GMT';
8+
59
if (process.env.CI) {
610
reporters.push([
711
'jest-junit',

0 commit comments

Comments
 (0)