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.
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.