Y
Hacker News
new
|
ask
|
show
|
jobs
by
SoftAnnaLee
1220 days ago
It seems that the issue is that `January === 1`; so when you get to December (i.e. `12`) it rolls over to 0 rather than remaining as 12.