fixes 1st of month missing in datepicker if that is a sunday

OP ticket: https://www.openproject.org/issues/2515