mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Truncate ms from initial logbook dates (#6246)
This commit is contained in:
parent
2cd367f29f
commit
8815b126b5
@ -59,12 +59,14 @@ export class HaPanelLogbook extends LitElement {
|
|||||||
start.setHours(start.getHours() - 2);
|
start.setHours(start.getHours() - 2);
|
||||||
start.setMinutes(0);
|
start.setMinutes(0);
|
||||||
start.setSeconds(0);
|
start.setSeconds(0);
|
||||||
|
start.setMilliseconds(0);
|
||||||
this._startDate = start;
|
this._startDate = start;
|
||||||
|
|
||||||
const end = new Date();
|
const end = new Date();
|
||||||
end.setHours(end.getHours() + 1);
|
end.setHours(end.getHours() + 1);
|
||||||
end.setMinutes(0);
|
end.setMinutes(0);
|
||||||
end.setSeconds(0);
|
end.setSeconds(0);
|
||||||
|
end.setMilliseconds(0);
|
||||||
this._endDate = end;
|
this._endDate = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user