From c3fcc108073a5c8b7258abbe881b2238585223f5 Mon Sep 17 00:00:00 2001 From: lianglianglee Date: Sat, 17 Jun 2023 21:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=97=A5=E6=9C=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/utils.js b/source/js/utils.js index b519ea4..ee2dd1e 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -295,7 +295,7 @@ KEEP.initUtils = () => { post && post.forEach((v) => { const nowDate = Date.now() - const postDate = new Date(v.dataset.updated.split(' GMT')[0]).getTime() + const postDate = new Date(v.dataset.date.split(' GMT')[0]).getTime() v.innerHTML = this.getHowLongAgo(Math.floor((nowDate - postDate) / 1000)) }) },