Skip to content

Commit

Permalink
Instantiate timestamp as DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 14, 2024
1 parent bd72060 commit ad724e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cas/Protocol/Cas20.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function getValidateSuccessResponse(string $username): AuthenticationSucc
}

$attributes = new Attributes(
new AuthenticationDate(gmdate('Y-m-d\TH:i:s\Z', time())),
new AuthenticationDate(new DateTimeImmutable('now')),
new LongTermAuthenticationRequestTokenUsed('true'),
new IsFromNewLogin('true'),
$attr,
Expand Down

0 comments on commit ad724e7

Please sign in to comment.