1
0
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:
Jon Ziebell 2020-03-16 22:01:53 -04:00
parent 930fbe1c28
commit 6aeceef172

View File

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