Skip to content

Commit ebc25b4

Browse files
authored
refactor: do not use future-deprecated DATE_RFC7231 constant (#9657)
1 parent bb1cefa commit ebc25b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Cookie/CookieInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ interface CookieInterface
5757
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date
5858
* @see https://tools.ietf.org/html/rfc7231#section-7.1.1.2
5959
*/
60-
public const EXPIRES_FORMAT = DATE_RFC7231;
60+
public const EXPIRES_FORMAT = 'D, d M Y H:i:s T';
6161

6262
/**
6363
* Returns a unique identifier for the cookie consisting

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Message Changes
9999
Changes
100100
*******
101101

102-
- **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.
102+
- **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.
103103
- **Format:** Added support for configuring ``json_encode()`` maximum depth via ``Config\Format::$jsonEncodeDepth``.
104104
- **Paths:** Added support for changing the location of the ``.env`` file via the ``Paths::$envDirectory`` property.
105105

0 commit comments

Comments
 (0)