Pass missing time zone info to dev tool state (#17087)

This commit is contained in:
Philip Allgaier 2023-06-29 09:48:53 +02:00 committed by GitHub
parent 82cc667012
commit b539a939b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -628,14 +628,16 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
lastChangedString(entity) {
return formatDateTimeWithSeconds(
new Date(entity.last_changed),
this.hass.locale
this.hass.locale,
this.hass.config
);
}
lastUpdatedString(entity) {
return formatDateTimeWithSeconds(
new Date(entity.last_updated),
this.hass.locale
this.hass.locale,
this.hass.config
);
}