This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Description
I've noticed that when I use datepicker widget, it set's a wrong date. For example, if I choose 2016-02-04 it would set 2016-02-03 in stead.
After digging around a bit, I found out that the method formatDate
in file /assets/datepicker/vendor/js/bootstrap-datepicker.js
is to blame. If I change it to use date.getDay() in stead of date.getUTCDay(), everything works perfectly.
I suppose it has got something to do with the fact that I live in UTC +2h timezone.