diff --git a/lib/utils-date.js b/lib/utils-date.js index fadcbbe9..05aabba0 100644 --- a/lib/utils-date.js +++ b/lib/utils-date.js @@ -187,6 +187,9 @@ export const return ''; } const localDate = toDate(toLocalISOString(date)); + if (!localDate) { + return ''; + } localDate.setHours(0, 0, 0, 0); return localDate; },