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:
parent
bd18e18bfe
commit
b51a818476
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user