From b51a818476ef9ec8c971a21b3e3d892a2a03ea34 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 10 Feb 2021 19:54:13 -0500 Subject: [PATCH] Fixed #323 - Thermostat & Sensor Detail don't load until thermostat is at least hours old --- js/component/card/runtime_sensor_detail.js | 2 +- js/component/card/runtime_thermostat_detail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/component/card/runtime_sensor_detail.js b/js/component/card/runtime_sensor_detail.js index f24417e..aa3196f 100644 --- a/js/component/card/runtime_sensor_detail.js +++ b/js/component/card/runtime_sensor_detail.js @@ -116,7 +116,7 @@ beestat.component.card.runtime_sensor_detail.prototype.decorate_contents_ = func // Don't go before there's data. required_begin = moment.max( required_begin, - moment(thermostat.first_connected) + moment.utc(thermostat.first_connected) ); // Don't go after now. diff --git a/js/component/card/runtime_thermostat_detail.js b/js/component/card/runtime_thermostat_detail.js index a491aa7..cade6d6 100644 --- a/js/component/card/runtime_thermostat_detail.js +++ b/js/component/card/runtime_thermostat_detail.js @@ -135,7 +135,7 @@ beestat.component.card.runtime_thermostat_detail.prototype.decorate_contents_ = // Don't go before there's data. required_begin = moment.max( required_begin, - moment(thermostat.first_connected) + moment.utc(thermostat.first_connected) ); // Don't go after now.