Skip to content

Commit

Permalink
fix: 修复显示时区
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv committed Nov 2, 2023
1 parent 885b032 commit d79a686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ async function init() {
});
});
});

const options = { timeZone: 'Asia/Shanghai', hour12: false };
const outputData = {
...res,
date: new Date().toLocaleString("zh-CN"),
date: new Date().toLocaleString("zh-CN", options),
localImagesPath: imagesFolderName,
}

Expand Down

0 comments on commit d79a686

Please sign in to comment.