fix
This commit is contained in:
@@ -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());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user