We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a8d9f1 commit a2c0dffCopy full SHA for a2c0dff
package.json
@@ -22,7 +22,7 @@
22
"eslint": "3.19.0",
23
"nyc": "10.3.2",
24
"seedrandom": "2.4.3",
25
- "timezone-mock": "0.0.0",
+ "timezone-mock": "0.0.4",
26
"urun": "0.0.8",
27
"utest": "0.0.8"
28
},
test/integration/connection/test-timezones.js
@@ -5,7 +5,9 @@ var common = require('../../common');
5
6
function registerMock() {
7
timezone_mock.register('US/Pacific');
8
- assert.ok(new Date().getTimezoneOffset() === 420 || new Date().getTimezoneOffset() === 480);
+ var date = new Date(Date.now());
9
+ var tzo = date.getTimezoneOffset();
10
+ assert.ok(tzo === 420 || tzo === 480);
11
}
12
13
var table = 'timezone_test';
0 commit comments