From a7b55b0b6d79c4a323aab1f1c3d2777bdd45340e Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Sat, 13 Dec 2025 17:39:41 +0330 Subject: [PATCH] fix --- app/Console/Commands/SendDueReminders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/SendDueReminders.php b/app/Console/Commands/SendDueReminders.php index 3a532f7..b77c2f7 100644 --- a/app/Console/Commands/SendDueReminders.php +++ b/app/Console/Commands/SendDueReminders.php @@ -25,7 +25,7 @@ class SendDueReminders extends Command */ public function handle(): int { - $now = now('UTC'); + $now = now(); $currentTime = $now->toTimeString(); // HH:MM:SS $this->info("Current time: {$now}"); @@ -43,7 +43,7 @@ public function handle(): int ->orWhere('repeatable', true) ->where(function ($inner) use ($now) { $inner->whereNull('last_repeat') - ->orWhereDate('last_repeat', '<=', $now->toDateString()); + ->orWhereDate('last_repeat', '<', $now->toDateString()); }); }); })