fixed bug related to parseInt bug, leading 0 is interpreated in a fucked upp way

This commit is contained in:
Darwin 2010-12-11 12:07:05 +01:00
parent 0249d60604
commit 8ba010b0fe

View 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());
});