From 454395eb0e11ce8b42be30658016a6deb4c67932 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Tue, 14 Oct 2025 11:58:35 +0200 Subject: [PATCH] Forecast chart: fix solar area glitch (#24408) --- assets/js/components/Forecast/Chart.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/assets/js/components/Forecast/Chart.vue b/assets/js/components/Forecast/Chart.vue index 840b1f5c5..50f21e81f 100644 --- a/assets/js/components/Forecast/Chart.vue +++ b/assets/js/components/Forecast/Chart.vue @@ -433,14 +433,9 @@ export default defineComponent({ ); }, filterEntries(entries: TimeseriesEntry[] = []) { - // include 1 hour before and after - const start = new Date(this.startDate); - start.setHours(start.getHours() - 1); - const end = new Date(this.endDate); - end.setHours(end.getHours() + 1); - return entries.filter( - (entry) => new Date(entry.ts) >= start && new Date(entry.ts) <= end + (entry) => + new Date(entry.ts) >= this.startDate && new Date(entry.ts) <= this.endDate ); }, onMouseLeave() {