Fix incorrect failing date test
This commit is contained in:
parent
3c6b106b86
commit
fb499e4b3d
@ -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) {
|
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));
|
client.on('drain', client.end.bind(client));
|
||||||
|
Loading…
Reference in New Issue
Block a user