CRM-15275 - Fix datepicker error with certain format