diff --git a/app/Services/PendingChangesService.php b/app/Services/PendingChangesService.php index 57ca88144d7..cfc57b691a0 100644 --- a/app/Services/PendingChangesService.php +++ b/app/Services/PendingChangesService.php @@ -307,7 +307,7 @@ public function changesQuery(array $params): Builder if ($to !== '') { // before end of the day - $to_time = DateTimeImmutable::createFromFormat('!Y-m-d', $from, $tz) + $to_time = DateTimeImmutable::createFromFormat('!Y-m-d', $to, $tz) ->add(new DateInterval('P1D')) ->setTimezone($utc) ->format('Y-m-d H:i:s');