Open amuttsch opened 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.
months
th.prev
th.next
This commit will fix this and the months variable has only the correct spans in access.
spans
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
:thumbsup:
The month is always two months behind. This is because the
months
variable has also the two header spansth.prev
andth.next
selected.This commit will fix this and the
months
variable has only the correctspans
in access.