From 680f55498184a2cf787493c16570d3f44990a912 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 19 Jul 2025 21:08:37 +0200 Subject: [PATCH] Fix #10618 --- app/Http/Controllers/Account/IndexController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Account/IndexController.php b/app/Http/Controllers/Account/IndexController.php index 4e8ded5f1e..92bd62e491 100644 --- a/app/Http/Controllers/Account/IndexController.php +++ b/app/Http/Controllers/Account/IndexController.php @@ -88,7 +88,9 @@ class IndexController extends Controller /** @var Carbon $end */ $end = clone session('end', today(config('app.timezone'))->endOfMonth()); - $start->subDay(); + + // #10618 go to the end of the previous day. + $start->subSecond(); $ids = $accounts->pluck('id')->toArray(); Log::debug(sprintf('inactive start: finalAccountsBalance("%s")', $start->format('Y-m-d H:i:s'))); @@ -164,8 +166,8 @@ class IndexController extends Controller /** @var Carbon $end */ $end = clone session('end', today(config('app.timezone'))->endOfMonth()); - // 2025-05-11 removed this so start is exactly the start of the month. - // $start->subDay(); + // #10618 go to the end of the previous day. + $start->subSecond(); $ids = $accounts->pluck('id')->toArray(); Log::debug(sprintf('index start: finalAccountsBalance("%s")', $start->format('Y-m-d H:i:s')));