use native session dates
This commit is contained in:
parent
88a3997bad
commit
ad27a0f03c
2 changed files with 4 additions and 5 deletions
|
|
@ -3,7 +3,6 @@
|
|||
namespace App\Auth;
|
||||
|
||||
use App\User\UserRepository;
|
||||
use Carbon\CarbonInterface;
|
||||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
|
||||
|
|
@ -55,7 +54,7 @@ class EloquentSessionRepository implements SessionRepository
|
|||
SessionModel::where('token', $token)->delete();
|
||||
}
|
||||
|
||||
private function toUtc(CarbonInterface $dateTime): DateTimeImmutable
|
||||
private function toUtc(DateTimeImmutable $dateTime): DateTimeImmutable
|
||||
{
|
||||
return DateTimeImmutable::createFromInterface($dateTime)
|
||||
->setTimezone(new DateTimeZone('UTC'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue