Fix date parser

This commit is contained in:
Christian Capeans 2023-07-05 15:01:37 +02:00
parent 2f67950deb
commit 98f34c162e

View File

@ -25,6 +25,8 @@ const parseDateTimeOrTimestamp = (value) => {
};
const parseDate = (value) => {
if (dateFns.isDate(value)) return dateFns.format(value, 'yyyy-MM-dd');
const found = isString(value) ? value.match(PARTIAL_DATE_REGEX) || [] : [];
const extractedValue = found[0];