Datepicker returns the wrong date
Not sure if this is an angular-strap issue or a bootstrap-datepicker issue.
When I pick a date from the datepicker, for example: 25/12/2013 (dd/mm/yyyy), and then log the date I get this:
date: "2013-12-24T23:00:00.000Z"
No matter which date, it always returns the previous day with time set to 23:00.
They have discussed this here: https://github.com/eternicode/bootstrap-datepicker/issues/308 and it seems to be fixed, but I cannot get it to work.
Here's what I did wrong:
Instead of including
/angular-strap/vendor/bootstrap-datepicker.js"
I included the file from bootstrap-datepicker.. Which apparently gives a wrong date back.
Problem solved!I updated my comment on: https://github.com/eternicode/bootstrap-datepicker/issues/308
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.