This commit is contained in:
2025-12-13 17:39:41 +03:30
parent 536b34f40e
commit a7b55b0b6d
+2 -2
View File
@@ -25,7 +25,7 @@ class SendDueReminders extends Command
*/ */
public function handle(): int public function handle(): int
{ {
$now = now('UTC'); $now = now();
$currentTime = $now->toTimeString(); // HH:MM:SS $currentTime = $now->toTimeString(); // HH:MM:SS
$this->info("Current time: {$now}"); $this->info("Current time: {$now}");
@@ -43,7 +43,7 @@ public function handle(): int
->orWhere('repeatable', true) ->orWhere('repeatable', true)
->where(function ($inner) use ($now) { ->where(function ($inner) use ($now) {
$inner->whereNull('last_repeat') $inner->whereNull('last_repeat')
->orWhereDate('last_repeat', '<=', $now->toDateString()); ->orWhereDate('last_repeat', '<', $now->toDateString());
}); });
}); });
}) })