Skip to content

Commit c5c823b

Browse files
committed
one more test to update for UTC
1 parent fa0dd38 commit c5c823b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/jasmine/tests/histogram2d_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ describe('Test histogram2d', function() {
7676
}
7777

7878
// remove tzJan/tzJuly when we move to UTC
79-
var oneDay = 24 * 3600000,
80-
tzJan = (new Date(1970, 0, 1)).getTimezoneOffset(),
81-
tzJuly = (new Date(1970, 6, 1)).getTimezoneOffset();
79+
var oneDay = 24 * 3600000;
8280

8381
it('should handle both uniform and nonuniform date bins', function() {
8482
var out = _calc({
@@ -97,7 +95,7 @@ describe('Test histogram2d', function() {
9795
// lets also make it display the bins with nonuniform size,
9896
// and ensure we don't generate an extra bin on the end (see
9997
// first row of z below)
100-
expect(out.y0).toBe(tzJan === tzJuly ? '1969-07-02 14:24' : '1969-07-02 15:24');
98+
expect(out.y0).toBe('1969-07-02 14:24');
10199
expect(out.dy).toBe(365.2 * oneDay);
102100

103101
expect(out.z).toEqual([

0 commit comments

Comments
 (0)