Skip to content

Add method MongoDB\BSON\UTCDateTime::toDateTimeImmutable #3578

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jul 18, 2024

The method toDateTimeImmutable is identical to toDateTime, except it returns an instance of DateTimeImmutable.

Related to mongodb/mongo-php-driver#1611 (not released yet, it will be in extension mongodb 1.20.0).

@alcaeus alcaeus self-requested a review July 19, 2024 13:31
@alcaeus alcaeus merged commit c9ff64a into php:master Jul 22, 2024
2 checks passed
@GromNaN GromNaN deleted the PHPC-2286 branch July 22, 2024 12:26
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.

2 participants