From ad724e79b375c70aeb70da2205fec5eae8d7036f Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 14 Feb 2024 20:16:33 +0100 Subject: [PATCH] Instantiate timestamp as DateTime --- src/Cas/Protocol/Cas20.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cas/Protocol/Cas20.php b/src/Cas/Protocol/Cas20.php index 75a753d..f96abea 100644 --- a/src/Cas/Protocol/Cas20.php +++ b/src/Cas/Protocol/Cas20.php @@ -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,