diff --git a/README.md b/README.md index f3123fa..4bff7fa 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ var conString = "tcp://postgres:1234@localhost/postgres"; pg.connect(conString, function(err, client) { client.query("SELECT NOW() as when", function(err, result) { console.log("Row count: %d",result.rows.length); // 1 - console.log("Current year: %d", result.rows[0].when.getYear()); + console.log("Current year: %d", result.rows[0].when.getFullYear()); }); }); ```