format date

This commit is contained in:
Brahim Hadriche committed 2023-11-05 22:39:11 -05:00
1 parent 94773d5c3a
commit 3b5d7a9520
1 file changed
+5 -1
+5 -1
View File
@@ -13,9 +13,13 @@ const attachmentDestination = './playlet.wiki';
function writeMarkDownFile(images) {
const markdownFile = path.join(attachmentDestination, 'Home.md');
const date = new Date();
const options = { timeZone: 'America/New_York' };
const formattedDate = `${date.toLocaleString('en-US', options)} (Eastern Time)`;
let markdownContent = `# Playlet stats
This page was automatically generated on ${new Date().toString()}.
This page was automatically generated on ${formattedDate}.
`;
images.forEach(image => {