Skip to content

Commit 8067e40

Browse files
authored
Charts: Fix date selection doesn't work anymore (#3913)
Fixes #3908. Regression from #3627. Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent bdcaa5f commit 8067e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.openhab.ui/web/src/components/widgets/chart/chart-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default {
259259
setDate(date) {
260260
const chartType = this.context.component.config.chartType
261261
const day = dayjs(date)
262-
this.endTime = this.addOrSubtractPeriod(chartType ? startOf(chartType) : day, 1)
262+
this.endTime = this.addOrSubtractPeriod(chartType ? startOf(chartType, day) : day, 1)
263263
},
264264
earlierPeriod() {
265265
this.endTime = this.addOrSubtractPeriod(this.endTime, -1)

0 commit comments

Comments
 (0)