forked from vikunja/frontend
parent
31480eae72
commit
e82a83c8cf
|
@ -6,8 +6,9 @@ export function parseDateOrNull(date) {
|
|||
return date
|
||||
}
|
||||
|
||||
if (date && !date.startsWith('0001')) {
|
||||
if ((typeof date === 'string' || date instanceof String) && !date.startsWith('0001')) {
|
||||
return new Date(date)
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user