Skip to content

Commit aa242b0

Browse files
committed
Merge pull request brianc#213 from gurjeet/use_getFullYearInExample
Use JS Date's getFullYear() in first example.
2 parents a029e65 + a138407 commit aa242b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var conString = "tcp://postgres:1234@localhost/postgres";
2323
pg.connect(conString, function(err, client) {
2424
client.query("SELECT NOW() as when", function(err, result) {
2525
console.log("Row count: %d",result.rows.length); // 1
26-
console.log("Current year: %d", result.rows[0].when.getYear());
26+
console.log("Current year: %d", result.rows[0].when.getFullYear());
2727
});
2828
});
2929
```

0 commit comments

Comments
 (0)