Skip to content

Conversation

@paulbalandan
Copy link
Member

Description
When I first made this Cookie component, the MDN states that the date format is D, d-M-Y H:i:s T (RFC 850). Now, it seems this format is obsolete and recommends using RFC 5322 format (D, d M Y H:i:s \G\M\T - without dashes`). This PR updates the date format to that.

This change will not be breaking as per RFC 7231 section 7.1.1.1. Although RFC 850 is obsolete, it SHOULD still be accepted. Since we're moving from obsolete to recommended, I think we should not have any problems.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan added the enhancement PRs that improve existing functionalities label May 17, 2025
@paulbalandan paulbalandan merged commit cf6011f into codeigniter4:4.7 May 19, 2025
56 of 59 checks passed
@paulbalandan paulbalandan deleted the cookie-date-format branch May 19, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.7 enhancement PRs that improve existing functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants