From e8ef2fdc2cb0b4e91677f901e286a4cc44aebc95 Mon Sep 17 00:00:00 2001 From: Charles Garwood Date: Sun, 21 Oct 2018 09:12:28 -0400 Subject: [PATCH] this.language -> this.hass.language (#1816) --- src/panels/history/ha-panel-history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/history/ha-panel-history.js b/src/panels/history/ha-panel-history.js index c959200602..376015bedc 100644 --- a/src/panels/history/ha-panel-history.js +++ b/src/panels/history/ha-panel-history.js @@ -160,7 +160,7 @@ class HaPanelHistory extends LocalizeMixin(PolymerElement) { // We are unable to parse date because we use intl api to render date this.$.picker.set("i18n.parseDate", null); this.$.picker.set("i18n.formatDate", (date) => - formatDate(new Date(date.year, date.month, date.day), this.language) + formatDate(new Date(date.year, date.month, date.day), this.hass.language) ); }