Skip to content

Commit

Permalink
use unix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Feverqwe committed Jun 19, 2023
1 parent ae4a10b commit 060d102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/md2md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function resolveMd2Md(options: ResolveMd2MdOptions): Promise<void>
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')}`;
Expand Down

0 comments on commit 060d102

Please sign in to comment.