Skip to content

Commit 9c63701

Browse files
committed
export TZ env variable to setup localtime for chrome
1 parent c2bdf2a commit 9c63701

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
name: Set timezone to Alaska time (arbitrary timezone to test date logic)
5858
command: |
5959
sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
60+
export TZ='America/Anchorage'
6061
- run:
6162
name: Run jasmine tests (batch 1)
6263
command: ./.circleci/test.sh jasmine
@@ -74,6 +75,7 @@ jobs:
7475
name: Set timezone to Alaska time (arbitrary timezone to test date logic)
7576
command: |
7677
sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
78+
export TZ='America/Anchorage'
7779
- run:
7880
name: Run jasmine tests (batch 2)
7981
command: ./.circleci/test.sh jasmine2

test/jasmine/karma.conf.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,7 @@ func.defaultConfig = {
195195
'--touch-events',
196196
'--window-size=' + argv.width + ',' + argv.height,
197197
isCI ? '--ignore-gpu-blacklist' : '',
198-
(isBundleTest && basename(testFileGlob) === 'no_webgl') ? '--disable-webgl' : '',
199-
// just look at /etc/localtime, so that we test lib_date_test.js
200-
// in arbitrary timezones
201-
'--disable-per-user-timezone',
202-
'--disable-system-timezone-automatic-detection',
203-
'--disable-fine-grained-time-zone-detection'
198+
(isBundleTest && basename(testFileGlob) === 'no_webgl') ? '--disable-webgl' : ''
204199
]
205200
},
206201
_Firefox: {

0 commit comments

Comments
 (0)