Status code 400 showing on Logs tab and Daily Progress Report datepicker issue.

This commit is contained in:
kartik.sharma 2025-05-28 16:03:35 +05:30
parent c1020f4693
commit 33ab6fbdaa

View File

@ -12,7 +12,9 @@ const DateRangePicker = ({ onRangeChange, DateDifference = 7, defaultStartDate =
const fp = flatpickr(inputRef.current, {
mode: "range",
dateFormat: "d-m-Y",
dateFormat: "Y-m-d", // Format for backend (actual input value)
altInput: true, // Enables a visually different field
altFormat: "d-m-Y",
defaultDate: [fifteenDaysAgo, today],
static: true,
clickOpens: true,