diff --git a/app/Http/Controllers/Json/ReconcileController.php b/app/Http/Controllers/Json/ReconcileController.php index a32c27178b..34a9d1ec87 100644 --- a/app/Http/Controllers/Json/ReconcileController.php +++ b/app/Http/Controllers/Json/ReconcileController.php @@ -189,7 +189,7 @@ class ReconcileController extends Controller if ($end->lt($start)) { [$end, $start] = [$start, $end]; } - $start->startOfDay(); + $start->endOfDay(); $end->endOfDay(); $startDate = clone $start; $startDate->subDay(); diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index dccca78354..40d1b3b642 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -83,7 +83,7 @@ class ReportController extends Controller return view('error')->with('message', (string) trans('firefly.end_after_start_date')); } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share( @@ -116,7 +116,7 @@ class ReportController extends Controller return view('error')->with('message', (string) trans('firefly.end_after_start_date')); } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share( @@ -150,7 +150,7 @@ class ReportController extends Controller return view('error')->with('message', (string) trans('firefly.end_after_start_date')); } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share( @@ -185,7 +185,7 @@ class ReportController extends Controller } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share( @@ -219,7 +219,7 @@ class ReportController extends Controller } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share( @@ -377,7 +377,7 @@ class ReportController extends Controller return view('error')->with('message', (string) trans('firefly.end_after_start_date')); } $this->repository->cleanupBudgets(); - $start->startOfDay(); + $start->endOfDay(); // end of day so the final balance is at the end of that day. $end->endOfDay(); app('view')->share(