Truncate ms from initial logbook dates (#6246)

This commit is contained in:
Paulus Schoutsen 2020-06-26 12:17:35 -07:00 committed by GitHub
parent 2cd367f29f
commit 8815b126b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }