From a05b2aac604a27cae663f27cc7c8801ba0b12fba Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 15 Jan 2020 18:16:29 -0500 Subject: [PATCH] Fixed #222 - Data download skips a chunk of data every 7 days --- api/runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/runtime.php b/api/runtime.php index 7a7795c..563c15a 100644 --- a/api/runtime.php +++ b/api/runtime.php @@ -828,7 +828,7 @@ class runtime extends cora\api { $bytes += fputcsv($output, $runtime_thermostat); } - $chunk_begin = strtotime('+1 day', $chunk_end); + $chunk_begin = $chunk_end; } while ($chunk_end < $download_end); fclose($output);