mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
update eslint
This commit is contained in:
@@ -61,7 +61,7 @@ export function dateFormatFrontend(date: Date): string {
|
||||
|
||||
function dateParse(input: string, formatString: string): Date {
|
||||
const date = parse(input, formatString, new Date())
|
||||
if (date.getTime() !== NaN) {
|
||||
if (!Number.isNaN(date.getTime())) {
|
||||
return date
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user