konrad
c076298cf0
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: kolaente <k@knt.li> Reviewed-on: #414 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
7 lines
124 B
JavaScript
7 lines
124 B
JavaScript
export const parseDateOrNull = date => {
|
|
if (date && !date.startsWith('0001')) {
|
|
return new Date(date)
|
|
}
|
|
return null
|
|
}
|