From 514327778388599b6c53776afb13b241f13e9ba6 Mon Sep 17 00:00:00 2001 From: bingoohuang Date: Wed, 27 Aug 2025 08:33:28 +0800 Subject: [PATCH] show seconds for the "Last Modified" --- assets/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/index.js b/assets/index.js index c9b051b..81f2b23 100644 --- a/assets/index.js +++ b/assets/index.js @@ -906,7 +906,8 @@ function formatMtime(mtime) { const day = padZero(date.getDate(), 2); const hours = padZero(date.getHours(), 2); const minutes = padZero(date.getMinutes(), 2); - return `${year}-${month}-${day} ${hours}:${minutes}`; + const seconds = padZero(date.getSeconds(), 2); + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; } function padZero(value, size) {