From 6e09d7eda6dc012a620673f6782cea93a77f837d Mon Sep 17 00:00:00 2001 From: Anton Vikulov Date: Mon, 19 Jun 2023 10:51:42 +0300 Subject: [PATCH] use unix timestamp --- src/resolvers/md2md.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/md2md.ts b/src/resolvers/md2md.ts index cd46967c5..63d061b84 100644 --- a/src/resolvers/md2md.ts +++ b/src/resolvers/md2md.ts @@ -46,7 +46,7 @@ export async function resolveMd2Md(options: ResolveMd2MdOptions): Promise changesName = changesIdx; } if (!changesName && changesDate instanceof Date) { - changesName = changesDate.getTime(); + changesName = Math.trunc(changesDate.getTime() / 1000); } if (!changesName) { changesName = `name-${basename(outputPath, extname(outputPath))}-${String(index).padStart(3, '0')}`;