1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #323 - Thermostat & Sensor Detail don't load until thermostat is at least <timezone offset> hours old

This commit is contained in:
Jon Ziebell 2021-02-10 19:54:13 -05:00
parent bd18e18bfe
commit b51a818476
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.