Skip to content

Commit

Permalink
Replace now helper (#34262)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Sep 10, 2020
1 parent 6af0565 commit 4068b48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Cache/DatabaseLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Database\Connection;
use Illuminate\Database\QueryException;
use Illuminate\Support\Carbon;

class DatabaseLock extends Lock
{
Expand Down Expand Up @@ -92,7 +93,7 @@ public function acquire()
*/
protected function expiresAt()
{
return $this->seconds > 0 ? time() + $this->seconds : now()->addDays(1)->getTimestamp();
return $this->seconds > 0 ? time() + $this->seconds : Carbon::now()->addDays(1)->getTimestamp();
}

/**
Expand Down

0 comments on commit 4068b48

Please sign in to comment.