diff --git a/CHANGELOG.md b/CHANGELOG.md index f6c2676d..c1cb13e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/frontend/src/components/Service/ServiceSparkList.vue b/frontend/src/components/Service/ServiceSparkList.vue index eef882c3..5d5f2561 100644 --- a/frontend/src/components/Service/ServiceSparkList.vue +++ b/frontend/src/components/Service/ServiceSparkList.vue @@ -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)}] }