Skip to content

Commit

Permalink
start/end time
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Sep 9, 2020
1 parent 79918d0 commit ec528be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/Service/ServiceSparkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)}]
}
Expand Down

0 comments on commit ec528be

Please sign in to comment.