模板日期设置
This commit is contained in:
parent
f9a5ec5940
commit
c3fcc10807
|
@ -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))
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue