fixed bug related to parseInt bug, leading 0 is interpreated in a fucked upp way
This commit is contained in:
parent
0249d60604
commit
8ba010b0fe
7
test/unit/client/query-tests.js
Normal file
7
test/unit/client/query-tests.js
Normal file
@ -0,0 +1,7 @@
|
||||
var helper = require(__dirname + '/test-helper');
|
||||
var q = require('query')
|
||||
|
||||
test("testing dateParser", function() {
|
||||
assert.equal(q.dateParser("2010-12-11 09:09:04").toUTCString(),new Date("2010-12-11 09:09:04 GMT").toUTCString());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user