Adjust test to ensure DATE data-type is converted to local time
This commit is contained in:
parent
2716f95257
commit
f63476b7b8
@ -121,7 +121,9 @@ test('typed results', function() {
|
|||||||
dataTypeID: 1082,
|
dataTypeID: 1082,
|
||||||
actual: '2010-10-31',
|
actual: '2010-10-31',
|
||||||
expected: function(val) {
|
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',
|
name: 'interval time',
|
||||||
|
Loading…
Reference in New Issue
Block a user