mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Use formatDateNumeric in repair dialog (#13964)
This commit is contained in:
parent
952b433b2c
commit
ad3dcb355f
@ -1,6 +1,7 @@
|
|||||||
import "@material/mwc-button/mwc-button";
|
import "@material/mwc-button/mwc-button";
|
||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
|
import { formatDateNumeric } from "../../../common/datetime/format_date";
|
||||||
import { fireEvent } from "../../../common/dom/fire_event";
|
import { fireEvent } from "../../../common/dom/fire_event";
|
||||||
import { createCloseHeading } from "../../../components/ha-dialog";
|
import { createCloseHeading } from "../../../components/ha-dialog";
|
||||||
import "../../../components/ha-markdown";
|
import "../../../components/ha-markdown";
|
||||||
@ -92,8 +93,9 @@ class DialogRepairsIssue extends LitElement {
|
|||||||
</span>
|
</span>
|
||||||
-
|
-
|
||||||
${this._issue.created
|
${this._issue.created
|
||||||
? new Date(this._issue.created).toLocaleDateString(
|
? formatDateNumeric(
|
||||||
this.hass.language
|
new Date(this._issue.created),
|
||||||
|
this.hass.locale
|
||||||
)
|
)
|
||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user