Skip to content

Commit

Permalink
Remove hardcoded Carbon reference from scheduler event (#38063)
Browse files Browse the repository at this point in the history
  • Loading branch information
axlon authored Jul 19, 2021
1 parent bec6309 commit 176904e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Illuminate/Console/Scheduling/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Support\Arr;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Reflector;
use Illuminate\Support\Traits\Macroable;
Expand Down Expand Up @@ -320,7 +319,7 @@ public function runsInMaintenanceMode()
*/
protected function expressionPasses()
{
$date = Carbon::now();
$date = Date::now();

if ($this->timezone) {
$date->setTimezone($this->timezone);
Expand Down

0 comments on commit 176904e

Please sign in to comment.