diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts index 7deeefb..feca4b5 100644 --- a/quartz/plugins/transformers/lastmod.ts +++ b/quartz/plugins/transformers/lastmod.ts @@ -14,7 +14,7 @@ const defaultOptions: Options = { function coerceDate(fp: string, d: any): Date { const dt = new Date(d) - const invalidDate = isNaN(dt.getTime()) + const invalidDate = isNaN(dt.getTime()) || dt.getTime() === 0 if (invalidDate && d !== undefined) { console.log( chalk.yellow(