Closed
Description
Symfony version(s) affected: v5.3.1
Description
currently http foundation will create cookie with following expire date format:
Set-Cookie: id=xxx; expires=Tue, 08-Jun-2021 10:11:25 GMT; Max-Age=7200; path=/; httponly; samesite=lax
the corresponding code is here
but on MDN, the cookie's expire attribute should be Tue, 08 Jun 2021 10:11:25 GMT
instead of Tue, 08-Jun-2021 10:11:25 GMT
, this should not be a big problem, but it should be using a standard format.
How to reproduce
I'm using laravel 8, which use symfony/http-foundation v5.3.1 to create cooke.
Possible Solution
change the date format string to standard format.
Additional context
none