模板日期设置

This commit is contained in:
lianglianglee 2023-06-17 21:23:37 +08:00
parent f9a5ec5940
commit c3fcc10807
1 changed files with 1 additions and 1 deletions

View File

@ -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))
})
},