From 3425ef880ab9dfe2c8f35123a90050e2964c1a58 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 3 Aug 2025 01:39:51 +0800 Subject: [PATCH] refactor: do not use future-deprecated `DATE_RFC7231` constant --- system/Cookie/CookieInterface.php | 2 +- user_guide_src/source/changelogs/v4.7.0.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Cookie/CookieInterface.php b/system/Cookie/CookieInterface.php index 1e5ad2d56728..af86dd4c0c60 100644 --- a/system/Cookie/CookieInterface.php +++ b/system/Cookie/CookieInterface.php @@ -57,7 +57,7 @@ interface CookieInterface * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date * @see https://tools.ietf.org/html/rfc7231#section-7.1.1.2 */ - public const EXPIRES_FORMAT = DATE_RFC7231; + public const EXPIRES_FORMAT = 'D, d M Y H:i:s T'; /** * Returns a unique identifier for the cookie consisting diff --git a/user_guide_src/source/changelogs/v4.7.0.rst b/user_guide_src/source/changelogs/v4.7.0.rst index 843f1f393533..f8ad0f446f13 100644 --- a/user_guide_src/source/changelogs/v4.7.0.rst +++ b/user_guide_src/source/changelogs/v4.7.0.rst @@ -99,7 +99,7 @@ Message Changes Changes ******* -- **Cookie:** The ``CookieInterface::EXPIRES_FORMAT`` has been changed to ``D, d M Y H:i:s \G\M\T`` to follow the recommended format in RFC 7231. +- **Cookie:** The ``CookieInterface::EXPIRES_FORMAT`` has been changed to ``D, d M Y H:i:s T`` to follow the recommended format in RFC 7231. - **Format:** Added support for configuring ``json_encode()`` maximum depth via ``Config\Format::$jsonEncodeDepth``. - **Paths:** Added support for changing the location of the ``.env`` file via the ``Paths::$envDirectory`` property.