Skip to content

Commit f63476b

Browse files
committed
Adjust test to ensure DATE data-type is converted to local time
1 parent 2716f95 commit f63476b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/client/typed-query-results-tests.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ test('typed results', function() {
121121
dataTypeID: 1082,
122122
actual: '2010-10-31',
123123
expected: function(val) {
124-
assert.UTCDate(val, 2010, 9, 31, 0, 0, 0, 0);
124+
var now = new Date(2010, 9, 31)
125+
assert.UTCDate(val, 2010, now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), 0, 0, 0);
126+
assert.equal(val.getHours(), now.getHours())
125127
}
126128
},{
127129
name: 'interval time',

0 commit comments

Comments
 (0)