Fix incorrect failing date test

This commit is contained in:
Brian Carlson 2013-09-01 21:59:33 -05:00
parent 3c6b106b86
commit fb499e4b3d

View File

@ -162,8 +162,7 @@ test('early AD date', function() {
}))
client.query('SELECT $1::TIMESTAMPTZ as when', ["0062-03-08 14:32:00 BC"], assert.success(function(res) {
console.log(res.rows[0].when)
assert.equal(res.rows[0].when.getFullYear(), 62);
assert.equal(res.rows[0].when.getFullYear(), -62);
}))
client.on('drain', client.end.bind(client));