Skip to content

Conversation

saundefined
Copy link
Member

Add test to reproduce the bug 81458.

Description:

In PHP 8.0 diff()->days returned the total number of days between dates even if one of them were in UTC and not the other.

In PHP 8.1 diff()->d is still OK but diff()->days is now 0.

https://3v4l.org/PHsfG

@saundefined
Copy link
Member Author

Applied with 904933e

@saundefined saundefined closed this Dec 8, 2021
@saundefined saundefined deleted the bug81458-tests branch December 8, 2021 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants