Fix off by one day in date input (in calendar) (#14590)

fixes undefined
This commit is contained in:
Allen Porter 2022-12-07 01:04:45 -08:00 committed by GitHub
parent 774259224b
commit a941ed4f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ export class HaDateInput extends LitElement {
readonly
@click=${this._openDialog}
.value=${this.value
? formatDateNumeric(new Date(this.value), this.locale)
? formatDateNumeric(new Date(`${this.value}T00:00:00`), this.locale)
: ""}
.required=${this.required}
>