We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdcaa5f commit 8067e40Copy full SHA for 8067e40
bundles/org.openhab.ui/web/src/components/widgets/chart/chart-mixin.js
@@ -259,7 +259,7 @@ export default {
259
setDate(date) {
260
const chartType = this.context.component.config.chartType
261
const day = dayjs(date)
262
- this.endTime = this.addOrSubtractPeriod(chartType ? startOf(chartType) : day, 1)
+ this.endTime = this.addOrSubtractPeriod(chartType ? startOf(chartType, day) : day, 1)
263
},
264
earlierPeriod() {
265
this.endTime = this.addOrSubtractPeriod(this.endTime, -1)
0 commit comments