Skip to content

Commit ad724e7

Browse files
committed
Instantiate timestamp as DateTime
1 parent bd72060 commit ad724e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cas/Protocol/Cas20.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function getValidateSuccessResponse(string $username): AuthenticationSucc
150150
}
151151

152152
$attributes = new Attributes(
153-
new AuthenticationDate(gmdate('Y-m-d\TH:i:s\Z', time())),
153+
new AuthenticationDate(new DateTimeImmutable('now')),
154154
new LongTermAuthenticationRequestTokenUsed('true'),
155155
new IsFromNewLogin('true'),
156156
$attr,

0 commit comments

Comments
 (0)