diff --git a/api/runtime_thermostat.php b/api/runtime_thermostat.php index 1dc54f2..c4f7e63 100755 --- a/api/runtime_thermostat.php +++ b/api/runtime_thermostat.php @@ -329,7 +329,11 @@ class runtime_thermostat extends cora\crud { 'timestamp' => [ 'value' => [ $this->get_utc_datetime( - $columns_begin['date'] . ' ' . $columns_begin['time'], + date( + 'Y-m-d H:i:s', + strtotime($columns_begin['date'] . ' ' . $columns_begin['time'] . ' -1 hour') + ), + // $columns_begin['date'] . ' ' . $columns_begin['time'], $thermostat['time_zone'] ), $this->get_utc_datetime(