fix global var weekstart for datepicker