Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateInterval from_string property not copied in PHP 8.2 #188

Open
sidux opened this issue Mar 22, 2023 · 0 comments
Open

DateInterval from_string property not copied in PHP 8.2 #188

sidux opened this issue Mar 22, 2023 · 0 comments

Comments

@sidux
Copy link

sidux commented Mar 22, 2023

Since PHP 8.2

The from_string and date_string properties were added for DateInterval instances that were created using the DateInterval::createFromDateString() method.

When cloning this property is not taken into account which causes issues (some DateInterval properties get ignored)

Removing the DateIntervalFilter doesn't work.

Solution example : return new DateInterval($element->format('%rP%yY%mM%dDT%hH%iM%sS'));

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

No branches or pull requests

1 participant