From f3f4e6b3549bcc0d7e82778cee10e0b3a6fd0f2a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 27 Dec 2015 09:40:28 +0100 Subject: [PATCH] Stops date from skipping ahead slowly. --- app/Generator/Chart/Account/ChartJsAccountChartGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php b/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php index 81097dd552..dafa9c5b25 100644 --- a/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php +++ b/app/Generator/Chart/Account/ChartJsAccountChartGenerator.php @@ -113,7 +113,7 @@ class ChartJsAccountChartGenerator implements AccountChartGenerator 'data' => [], ]; $current = clone $start; - $range = Steam::balanceInRange($account, $start, $end); + $range = Steam::balanceInRange($account, $start, clone $end); $previous = array_values($range)[0]; while ($current <= $end) { $format = $current->format('Y-m-d');