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

Fix DateType not clearing time for DateTimeImmutable #15978

Merged
merged 1 commit into from Sep 29, 2021
Merged

Conversation

othercorey
Copy link
Member

Fixes #15976

@othercorey othercorey added this to the 4.2.10 milestone Sep 29, 2021
@dereuromark
Copy link
Member

I wonder if this should have a method_exists() check instead of blindly executing on this object?

Call to an undefined method DateTimeInterface::setTime().

@othercorey
Copy link
Member Author

I wonder if this should have a method_exists() check instead of blindly executing on this object?

Call to an undefined method DateTimeInterface::setTime().

When Chronos changes, these will have to change. At the moment, all instances are always DateTime or DateTimeImmutable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

marshal to DateTimeImmutable keeps time \Cake\Database\Type\DataType
3 participants