angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

Datepicker returns the wrong date

Open cabaret opened this issue 12 years ago • 3 comments

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.

cabaret avatar Dec 04 '13 12:12 cabaret

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.

cabaret avatar Dec 04 '13 13:12 cabaret

Problem solved!I updated my comment on: https://github.com/eternicode/bootstrap-datepicker/issues/308

Paki90 avatar Jul 13 '14 21:07 Paki90

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.

lock[bot] avatar Jan 26 '19 19:01 lock[bot]