Skip to content

EspoCRM – Open Source CRM Application

fix datepicker min date

Yuri Kuznetsovbfcbbc4388dd
diff --git a/client/src/views/fields/date.js b/client/src/views/fields/date.js
index 4e5288b01f..2681c3315e 100644
--- a/client/src/views/fields/date.js
+++ b/client/src/views/fields/date.js
@@ -310,7 +310,7 @@ class DateFieldView extends BaseFieldView {
const options = {
format: this.getDateTime().dateFormat,
weekStart: this.getDateTime().weekStart,
- startDate: this.getStartDateForDatePicker() || this.getDateTime().toDisplayDate('1970-01-01'),
+ startDate: this.getStartDateForDatePicker(),
todayButton: this.getConfig().get('datepickerTodayButton') || false,
};