Merge branch 'dev-3.9' of git.mesalab.cn:nezha/nezha-fronted into dev-3.10
This commit is contained in:
@@ -259,12 +259,12 @@ export default {
|
|||||||
return function (record) {
|
return function (record) {
|
||||||
// 当 state = active | silence 时,duration = 当前服务器时间(result.time)- startAt
|
// 当 state = active | silence 时,duration = 当前服务器时间(result.time)- startAt
|
||||||
if (record.state == 1 || record.state == 2) {
|
if (record.state == 1 || record.state == 2) {
|
||||||
return calcDurationByStringTimeB(record.startAt, this.nowTime)
|
return calcDurationByStringTimeB(record.startAt, this.timezoneToUtcTimeStr(this.nowTime))
|
||||||
}
|
}
|
||||||
if (record.endAt) {
|
if (record.endAt) {
|
||||||
return calcDurationByStringTimeB(record.startAt, record.endAt)
|
return calcDurationByStringTimeB(record.startAt, record.endAt)
|
||||||
}
|
}
|
||||||
return calcDurationByStringTimeB(record.startAt, this.nowTime)
|
return calcDurationByStringTimeB(record.startAt, this.timezoneToUtcTimeStr(this.nowTime))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user