add deploy-time to page content

This commit is contained in:
2022-03-19 16:28:26 -04:00
parent 9e53c57f20
commit 7754a9337e
2 changed files with 10 additions and 6 deletions

View File

@@ -17,6 +17,13 @@ fs.readFile("./index.html", function (err, data) {
$("#Stores").html(mustache.render($("#Table").html(), { rows: stores }));
$("#storeCount").html(stores.length);
$("#updatedOn").html(
new Date().toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
})
);
fs.writeFile("./index.html", $.html(), (err) => {
if (err) throw err;