Update generate-packages-index.ts

This commit is contained in:
Michael Telatynski 2022-11-29 10:36:01 +00:00 committed by GitHub
parent eb2ec70ad9
commit 3bf4e37b22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,13 @@ function indexLayout(prefix: string, files: _Object[], dirs: string[]): string {
${rows.map(([link, name, size, date]) => `<tr>
<td class="link"><a href="${link}">${name}</a></td>
<td class="size">${size ? humanFileSize(size) : "-"}</td>
<td class="date">${date?.toLocaleString() ?? "-"}</td>
<td class="date">${date?.toLocaleString("en-GB", {
year: "numeric",
month: "short",
day: "2-digit",
hour: "2-digit",
minute: "numeric",
}) ?? "-"}</td>
</tr>`).join("")}
</tbody>
</table>