diff --git a/apps/zui/src/js/lib/date.ts b/apps/zui/src/js/lib/date.ts index f547f73348..b52e424d9d 100644 --- a/apps/zui/src/js/lib/date.ts +++ b/apps/zui/src/js/lib/date.ts @@ -46,7 +46,7 @@ date.parseInZone = (string, zone, ref?) => { } else { if (/^\s*now.*/i.test(string)) return null const d = chrono.casual.parse(string, ref) - if (d && d[0].text == string) { + if (d && d.length > 0 && d[0].text == string) { return time(d[0].date()).toTs() } else { return null