From 07aa71d5b52d85109192dbf053bbff798280abdb Mon Sep 17 00:00:00 2001 From: Max Bo Date: Fri, 4 Oct 2024 14:41:02 +1000 Subject: [PATCH] Short date --- docs/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 1b0f84b..c6ad4f7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -90,7 +90,7 @@

@celine/celine

Max Bo Updated - + GitHub @@ -114,7 +114,9 @@

@celine/celine

.then(d => d.json()) .then(resp => { document.getElementById("version").textContent = resp["dist-tags"].latest; - document.getElementById("updated").textContent = new Date(resp.time.modified).toDateString(); + const date = new Date(resp.time.modified); + const formattedDate = `${date.toLocaleString('default', { month: 'short' })} ${date.getDate()} ${date.getFullYear()}`; + document.getElementById("updated").textContent = formattedDate; })