diff --git a/src/main/java/net/bootsfaces/component/dateTimePicker/DateTimePickerRenderer.java b/src/main/java/net/bootsfaces/component/dateTimePicker/DateTimePickerRenderer.java index a8596e18f..a2b7c0744 100644 --- a/src/main/java/net/bootsfaces/component/dateTimePicker/DateTimePickerRenderer.java +++ b/src/main/java/net/bootsfaces/component/dateTimePicker/DateTimePickerRenderer.java @@ -398,7 +398,7 @@ private void encodeJS(FacesContext fc, ResponseWriter rw, DateTimePicker dtp, St dtp.getMinDate().contains("moment") ? dtp.getMinDate() : "'" + dtp.getMinDate() + "'" : ""; String maxDate = BsfUtils.isStringValued(dtp.getMaxDate()) ? - dtp.getMinDate().contains("moment") ? dtp.getMaxDate() : "'" + dtp.getMaxDate() + "'" : + dtp.getMaxDate().contains("moment") ? dtp.getMaxDate() : "'" + dtp.getMaxDate() + "'" : ""; rw.startElement("script", dtp);