Skip to content

Conversation

@othercorey
Copy link
Member

@othercorey othercorey commented Oct 26, 2025

This replaces the deprecated DATE_RFC7231 constant. Added to Chronos only since it doesn't make much sense for ChronosDate even though we include all of FormattingTrait for backwards compatibility.

@othercorey othercorey added this to the 3.next milestone Oct 26, 2025
@dereuromark
Copy link
Member

dereuromark commented Oct 26, 2025

No matching release found for phpstan!

I feel like we should get rid of phive. require-dev is just fine.

@othercorey othercorey requested a review from ADmad October 26, 2025 19:31

public function testToRfc7231String()
{
$time = Chronos::parse('2014-04-20 08:00:00');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add a non UTC timezone to the string to show the method properly converts the time before formatting.

@othercorey othercorey force-pushed the add-rfc7231 branch 3 times, most recently from 5771f1d to 79c6937 Compare October 26, 2025 20:03
@othercorey othercorey merged commit 7d9af08 into 3.next Oct 27, 2025
6 of 8 checks passed
@othercorey othercorey deleted the add-rfc7231 branch October 27, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants