asaglimbeni / django-datetime-widget

Bootstrap django-datetime-widget is a simple and clean widget for DateField, Timefiled and DateTimeField in Django framework. It is based on Bootstrap datetime picker, supports both Bootstrap 3 and Bootstrap 2
Other
218 stars 125 forks source link

Fix month view is two months behind #80

Open amuttsch opened 9 years ago

amuttsch commented 9 years ago

The month is always two months behind. This is because the months variable has also the two header spans th.prev and th.next selected.

This commit will fix this and the months variable has only the correct spans in access.

amuttsch commented 9 years ago

Btw, https://github.com/smalot/bootstrap-datetimepicker have this also fixed, but in a rather weird way: https://github.com/smalot/bootstrap-datetimepicker/blob/master/js/bootstrap-datetimepicker.js#L731

JaHicks commented 8 years ago

:thumbsup: