From 8815b126b5375eaf3be4c3b7883e20efedd0f532 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 26 Jun 2020 12:17:35 -0700 Subject: [PATCH] Truncate ms from initial logbook dates (#6246) --- src/panels/logbook/ha-panel-logbook.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/logbook/ha-panel-logbook.ts b/src/panels/logbook/ha-panel-logbook.ts index 42dc369094..8adb2a6c82 100644 --- a/src/panels/logbook/ha-panel-logbook.ts +++ b/src/panels/logbook/ha-panel-logbook.ts @@ -59,12 +59,14 @@ export class HaPanelLogbook extends LitElement { start.setHours(start.getHours() - 2); start.setMinutes(0); start.setSeconds(0); + start.setMilliseconds(0); this._startDate = start; const end = new Date(); end.setHours(end.getHours() + 1); end.setMinutes(0); end.setSeconds(0); + end.setMilliseconds(0); this._endDate = end; }