mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Pass missing time zone info to dev tool state (#17087)
This commit is contained in:
parent
82cc667012
commit
b539a939b4
@ -628,14 +628,16 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
lastChangedString(entity) {
|
lastChangedString(entity) {
|
||||||
return formatDateTimeWithSeconds(
|
return formatDateTimeWithSeconds(
|
||||||
new Date(entity.last_changed),
|
new Date(entity.last_changed),
|
||||||
this.hass.locale
|
this.hass.locale,
|
||||||
|
this.hass.config
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
lastUpdatedString(entity) {
|
lastUpdatedString(entity) {
|
||||||
return formatDateTimeWithSeconds(
|
return formatDateTimeWithSeconds(
|
||||||
new Date(entity.last_updated),
|
new Date(entity.last_updated),
|
||||||
this.hass.locale
|
this.hass.locale,
|
||||||
|
this.hass.config
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user