Commit a138407
committed
Use JS Date's getFullYear() in first example.
In year 2012, seeing the output of 112 confused me, and would potentially
confuse any JS noob. I thought it was some bug in node-postgres.
Presumably, JS starts counting time from Jan 1, 1900!
Also, according to [1], getYear() is deprecated and one should use getFullYear()
instead.
[1] http://www.w3schools.com/jsref/jsref_obj_date.asp1 parent a029e65 commit a138407
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments