We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I encountered an issue with the following code:
echo Carbon::parse('2024-02-06', 'Europe/Rome')->diffInDays(Carbon::parse('2023-09-27', 'Europe/Rome'));
Carbon version: 3.0.2
PHP version: 8.3.2
I expected to get:
-132.0
But I actually get:
-132.04166666667
My PHP default timezone is set to Europe/Rome. I tested it forcing UTC timezone and return 132.0.
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry, I closed because was my mistake and I solved it in my code.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hello,
I encountered an issue with the following code:
Carbon version: 3.0.2
PHP version: 8.3.2
I expected to get:
But I actually get:
My PHP default timezone is set to Europe/Rome. I tested it forcing UTC timezone and return 132.0.
Thanks!
The text was updated successfully, but these errors were encountered: