Skip to content

Commit 4068b48

Browse files
authored
Replace now helper (#34262)
1 parent 6af0565 commit 4068b48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Cache/DatabaseLock.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Database\Connection;
66
use Illuminate\Database\QueryException;
7+
use Illuminate\Support\Carbon;
78

89
class DatabaseLock extends Lock
910
{
@@ -92,7 +93,7 @@ public function acquire()
9293
*/
9394
protected function expiresAt()
9495
{
95-
return $this->seconds > 0 ? time() + $this->seconds : now()->addDays(1)->getTimestamp();
96+
return $this->seconds > 0 ? time() + $this->seconds : Carbon::now()->addDays(1)->getTimestamp();
9697
}
9798

9899
/**

0 commit comments

Comments
 (0)