mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed #267 - Thermostat Detail never loads if your time zone is too far in the "future"
This commit is contained in:
parent
930fbe1c28
commit
6aeceef172
@ -49,8 +49,8 @@ beestat.thermostat.data_synced = function(thermostat_id, required_sync_begin, re
|
||||
|
||||
var thermostat = beestat.cache.thermostat[thermostat_id];
|
||||
|
||||
var current_sync_begin = moment(thermostat.sync_begin);
|
||||
var current_sync_end = moment(thermostat.sync_end);
|
||||
var current_sync_begin = moment.utc(thermostat.sync_begin);
|
||||
var current_sync_end = moment.utc(thermostat.sync_end);
|
||||
|
||||
return (
|
||||
current_sync_begin.isSameOrBefore(required_sync_begin) === true &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user