Skip to content

Commit 176904e

Browse files
authored
Remove hardcoded Carbon reference from scheduler event (#38063)
1 parent bec6309 commit 176904e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Illuminate/Console/Scheduling/Event.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Contracts\Debug\ExceptionHandler;
1111
use Illuminate\Contracts\Mail\Mailer;
1212
use Illuminate\Support\Arr;
13-
use Illuminate\Support\Carbon;
1413
use Illuminate\Support\Facades\Date;
1514
use Illuminate\Support\Reflector;
1615
use Illuminate\Support\Traits\Macroable;
@@ -320,7 +319,7 @@ public function runsInMaintenanceMode()
320319
*/
321320
protected function expressionPasses()
322321
{
323-
$date = Carbon::now();
322+
$date = Date::now();
324323

325324
if ($this->timezone) {
326325
$date->setTimezone($this->timezone);

0 commit comments

Comments
 (0)