From ffea6c03f9be08ccb280d3417241f7df4e0b0730 Mon Sep 17 00:00:00 2001 From: Foxster Date: Wed, 3 Jan 2024 17:00:52 -0800 Subject: [PATCH] Use custom Date format instead of ISO --- index.js | 2 +- view/app/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f12febd..57f1637 100644 --- a/index.js +++ b/index.js @@ -80,7 +80,7 @@ import { sources } from "./common/modules/constants.js";

${source.name}

-

Last updated: ${lastUpdated.toISOString().split("T")[0]}

+

Last updated: ${formatVersionDate(lastUpdated)}

${appCount} diff --git a/view/app/app.js b/view/app/app.js index 2b0a525..fe66fbd 100644 --- a/view/app/app.js +++ b/view/app/app.js @@ -246,6 +246,6 @@ main((json) => { sourceIcon.src = json.iconURL ?? altSourceIcon; sourceTitle.innerText = json.name; sourceContainer.href = `../?source=${sourceURL}`; - sourceSubtitle.innerText = `Last updated: ${lastUpdated.toISOString().split("T")[0]}`; + sourceSubtitle.innerText = `Last updated: ${formatVersionDate(lastUpdated)}`; sourceAppCount.innerText = appCount; });