diff --git a/src/Authentication/Authenticators/Session.php b/src/Authentication/Authenticators/Session.php index 31836a631..1d3f7886c 100644 --- a/src/Authentication/Authenticators/Session.php +++ b/src/Authentication/Authenticators/Session.php @@ -927,9 +927,9 @@ protected function rememberUser(User $user): void private function calcExpires(): Time { - $timestamp = Time::now()->getTimestamp() + setting('Auth.sessionConfig')['rememberLength']; + $rememberLength = setting('Auth.sessionConfig')['rememberLength']; - return Time::createFromTimestamp($timestamp); + return Time::now()->addSeconds($rememberLength); } /**