From 5cdff7726889964ee5a03e1e45e60facccc43cd6 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Mon, 20 Jan 2020 21:40:06 -0500 Subject: [PATCH] Fixed #224 - Exception: Processing error. Start date is before end date. I never noticed this before because I was syncing very frequently. Now that I'm syncing once per week I started to see this. --- api/runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/runtime.php b/api/runtime.php index ba5edf3..f47a39d 100644 --- a/api/runtime.php +++ b/api/runtime.php @@ -217,7 +217,7 @@ class runtime extends cora\api { ] ); - $chunk_begin = strtotime('+1 day', $chunk_end); + $chunk_begin = $chunk_end; $this->database->commit_transaction(); } while ($chunk_end < $sync_end);