Stops date from skipping ahead slowly.

This commit is contained in:
James Cole
2015-12-27 09:40:28 +01:00
parent 0b5ee1edfc
commit f3f4e6b354

View File

@@ -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');