From 3bf4e37b22e7b38b3a08fb100b245146485f05eb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 29 Nov 2022 10:36:01 +0000 Subject: [PATCH] Update generate-packages-index.ts --- scripts/generate-packages-index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/generate-packages-index.ts b/scripts/generate-packages-index.ts index 0835d27..e6d0723 100755 --- a/scripts/generate-packages-index.ts +++ b/scripts/generate-packages-index.ts @@ -138,7 +138,13 @@ function indexLayout(prefix: string, files: _Object[], dirs: string[]): string { ${rows.map(([link, name, size, date]) => ` ${name} ${size ? humanFileSize(size) : "-"} - ${date?.toLocaleString() ?? "-"} + ${date?.toLocaleString("en-GB", { + year: "numeric", + month: "short", + day: "2-digit", + hour: "2-digit", + minute: "numeric", + }) ?? "-"} `).join("")}