prevented end date from ever going earlier than today

This commit is contained in:
2025-12-17 10:13:39 -05:00
parent 18d08af91d
commit 1cf6b35021

View File

@@ -121,7 +121,7 @@ const minEndDate = computed(() => {
if (values.start_date) {
return new CalendarDate(values.start_date.getFullYear(), values.start_date.getMonth() + 1, values.start_date.getDate())
} else {
return null;
return today(getLocalTimeZone());
}
})
@@ -141,7 +141,7 @@ const minStartDate = computed(() => {
let start = new CalendarDate(endDateObj.getFullYear(), endDateObj.getMonth() + 1, endDateObj.getDate())
return td.compare(start) > 0 ? td : start;
} else {
return null;
return today(getLocalTimeZone());
}
})