mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix hidden/broken input_datetime date selector (#14623)
fixes undefined
This commit is contained in:
parent
34e1d745be
commit
3b51050b52
@ -57,7 +57,10 @@ export class HaDateInput extends LitElement {
|
||||
readonly
|
||||
@click=${this._openDialog}
|
||||
.value=${this.value
|
||||
? formatDateNumeric(new Date(`${this.value}T00:00:00`), this.locale)
|
||||
? formatDateNumeric(
|
||||
new Date(`${this.value.split("T")[0]}T00:00:00`),
|
||||
this.locale
|
||||
)
|
||||
: ""}
|
||||
.required=${this.required}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user