Status code 400 showing on Logs tab and Daily Progress Report datepicker issue.
This commit is contained in:
parent
f511292f5a
commit
d80082bc9b
@ -12,7 +12,9 @@ const DateRangePicker = ({ onRangeChange, DateDifference = 7, defaultStartDate =
|
|||||||
|
|
||||||
const fp = flatpickr(inputRef.current, {
|
const fp = flatpickr(inputRef.current, {
|
||||||
mode: "range",
|
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],
|
defaultDate: [fifteenDaysAgo, today],
|
||||||
static: true,
|
static: true,
|
||||||
clickOpens: true,
|
clickOpens: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user