mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 14:19:52 +08:00
Update common.js
修复恋爱墙倒计时获取本地时间报错。
This commit is contained in:
parent
efedc75517
commit
fadb8e83d4
@ -390,7 +390,7 @@ const commonContext = {
|
|||||||
}
|
}
|
||||||
const grt = new Date(loveTime)
|
const grt = new Date(loveTime)
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
let now = Date.now()
|
let now = new Date(Date.now())
|
||||||
let difference = parseInt((now - grt) / 1000)
|
let difference = parseInt((now - grt) / 1000)
|
||||||
let seconds = difference % 60
|
let seconds = difference % 60
|
||||||
difference = parseInt(difference / 60)
|
difference = parseInt(difference / 60)
|
||||||
@ -654,4 +654,4 @@ let timeLifeHour = -1
|
|||||||
omits.forEach((c) => commonContext[c] && commonContext[c]())
|
omits.forEach((c) => commonContext[c] && commonContext[c]())
|
||||||
$('html').addClass('ready')
|
$('html').addClass('ready')
|
||||||
})
|
})
|
||||||
})()
|
})()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user