From f63476b7b8194d8d749300fc1bb087c3bacc650c Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Fri, 14 Mar 2014 06:37:00 -0500 Subject: [PATCH] Adjust test to ensure DATE data-type is converted to local time --- test/unit/client/typed-query-results-tests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/client/typed-query-results-tests.js b/test/unit/client/typed-query-results-tests.js index abac25d..35d807e 100644 --- a/test/unit/client/typed-query-results-tests.js +++ b/test/unit/client/typed-query-results-tests.js @@ -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',