strongloop / strong-oracle

Deprecated: Node.js Driver for Oracle databases (Use https://github.com/oracle/node-oracledb instead)
Other
45 stars 18 forks source link

Fix leap year date problem #38

Closed vschoettke closed 9 years ago

vschoettke commented 9 years ago

Before this fix e.g. 2016-02-29 in the DB was resulting in 2016-03-01 in JS. Because the order of initialization was date, month, year and the year 1970 has only 28 days in February the 29th was wrapped to March 1st. Reversing the order of initialization fixed the problem.