Skip to content

Commit

Permalink
Display year for created_at and modified_at of entities (#23772)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede authored Jan 23, 2025
1 parent 25ff96b commit 62a9da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panels/config/entities/ha-config-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ifDefined } from "lit/directives/if-defined";
import { styleMap } from "lit/directives/style-map";
import memoize from "memoize-one";
import { computeCssColor } from "../../../common/color/compute-color";
import { formatShortDateTime } from "../../../common/datetime/format_date_time";
import { formatShortDateTimeWithYear } from "../../../common/datetime/format_date_time";
import { storage } from "../../../common/decorators/storage";
import type { HASSDomEvent } from "../../../common/dom/fire_event";
import { computeDomain } from "../../../common/entity/compute_domain";
Expand Down Expand Up @@ -410,7 +410,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
minWidth: "128px",
template: (entry) =>
entry.created_at
? formatShortDateTime(
? formatShortDateTimeWithYear(
new Date(entry.created_at * 1000),
this.hass.locale,
this.hass.config
Expand All @@ -425,7 +425,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
minWidth: "128px",
template: (entry) =>
entry.modified_at
? formatShortDateTime(
? formatShortDateTimeWithYear(
new Date(entry.modified_at * 1000),
this.hass.locale,
this.hass.config
Expand Down

0 comments on commit 62a9da2

Please sign in to comment.