Adjust test to ensure DATE data-type is converted to local time

This commit is contained in:
Brian M. Carlson 2014-03-14 06:37:00 -05:00
parent 2716f95257
commit f63476b7b8

View File

@ -121,7 +121,9 @@ test('typed results', function() {
dataTypeID: 1082,
actual: '2010-10-31',
expected: function(val) {
assert.UTCDate(val, 2010, 9, 31, 0, 0, 0, 0);
var now = new Date(2010, 9, 31)
assert.UTCDate(val, 2010, now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), 0, 0, 0);
assert.equal(val.getHours(), now.getHours())
}
},{
name: 'interval time',