From 9289ec19594332ef8e56dbe3ef0ab2e94e60ab2a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 19 Jul 2023 08:49:20 +0000 Subject: [PATCH] fix date format in test --- tests/e2e/Services/Account/AccountBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 08cfc20e0f..67ff280015 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -1297,7 +1297,7 @@ trait AccountBase $token = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); - $expireTime = strpos($lastEmail['text'], 'expire=' . urlencode(DateTime::format(new \DateTime($response['body']['expire']))), 0); + $expireTime = strpos($lastEmail['text'], 'expire=' . urlencode(DateTime::formatTz($response['body']['expire'])), 0); $this->assertNotFalse($expireTime);