start/end time

pull/813/head
hunterlong 2020-09-08 19:01:06 -07:00
parent 79918d025d
commit ec528befcf
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# 0.90.66 (09-08-2020)
- Added Import and Export views in Dashboard
- Modified services list sparkline to use start/end of day timestamp
# 0.90.65 (09-01-2020)
- Fixed issue with dashboard not logging in (notifier panic)

View File

@ -153,7 +153,10 @@ export default {
group = "24h"
}
const data = await Api.service_failures_data(this.service.id, this.toUnix(this.nowSubtract(start)), this.toUnix(this.now()), group, true)
const startTime = this.beginningOf("day", this.nowSubtract(start))
const endTime = this.endOf("day", this.now())
const data = await Api.service_failures_data(this.service.id, this.toUnix(startTime), this.toUnix(endTime), group, true)
this.loaded = true
this.data = [{data: this.convertChartData(data)}]
}