1
0
mirror of https://github.com/beestat/app.git synced 2025-08-07 09:01:32 -04:00

Fixed #178 - Time change and why it sucks: A novel

This commit is contained in:
Jon Ziebell 2019-11-04 20:41:09 -05:00
parent 28b0d9dbd8
commit a8562b6878

View File

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