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)
|
||||
setInterval(function () {
|
||||
let now = Date.now()
|
||||
let now = new Date(Date.now())
|
||||
let difference = parseInt((now - grt) / 1000)
|
||||
let seconds = difference % 60
|
||||
difference = parseInt(difference / 60)
|
||||
|
Loading…
x
Reference in New Issue
Block a user