Timezone issue with Datepicker and inconsistency
UI Bootstrap: 0.13.3 AngularJS: 1.4.4
Starting out
- Open this Plunker http://plnkr.co/edit/vcOgtMr0XSS3Mewj0KTK?p=preview
- Observe that the input matches the model.

Problem 1
- Pick 30-01-2015 (dd-mm-yyyy) in the popup in both of the inputs.
- Observe that the input without a starting value (top field ) has an incorrect date in the model. While this might be caused by a timezone issue, then why doesn't the input with a starting value also do this?

Problem 2
- Reload the page, so we start from fresh.
- Pick 20-05-2015 (dd-mm-yyyy) in the popup in both of the inputs.
- Observe that now both fields have the wrong date in the model. It's not even the same incorrect value. This extra offset might be due by summer time.

Problem 3
- Reload the page, so we start from fresh.
- Click the Today button (for me that's 27-08-2015 (dd-mm-yyyy)) in the popup in both of the inputs.
- Observe that the value in the model is now the same incorrect value, unlike previous.

Problem 4
- Reload the page, so we start from fresh.
- Pick any date in the popup in both of the inputs.
- Click the Today button (for me that's 27-08-2015 (dd-mm-yyyy)) in the popup in both of the inputs.
- Observe that problem 3 isn't consistent as it now appears to behave like problem 2.

While I understand where the problem is coming from. Some sort of configuration for handling timezone/summer time is needed so the correct value can be set in the model.
Happy to hear about workarounds :)
Thanks for the details - this is indeed a bug that has been reported multiple times (there are other open issues on this).
Waiting for this fix like crazy! Thanks :+1:
+1
This is a bigger issue than I thought. Without the ability to use dates as strings since 13.2 I cannot find a way at all to keep the dates consistent between the model and the calendar.
Did anybody found a hack or something for that while we wait for an update? Thanks.
+1
Please do not +1 issues. It doesn't add anything to the discussion and clutters the thread. Thank you.
any idea on when this bug will get fixed?
Just noting:
1 & 3) This turns out to not be a bug - one must be careful when parsing dates since date.toJSON() will munge the timezone information into the date string itself, which can cause the date representation to shift by a day. There is nothing we can do here, and this is a usage issue - this Plunker should help in exposing this.
2 looks like it might be a legitimate issue though, and should be investigated.
It should be noted that we no longer support date strings in the model.
2 & 4 no longer appear to be issues anymore, as can be seen in this Plunker