-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Timezone offset is added to the value after upgrading to 1.22 #863
Comments
I also ran into this problem, same issue. I do a lot of sensitive work with dates that, if wrong, could cost me a lot of money. Any chance of it getting fixed soon? |
This can be reproduced over here as well, running 1.22.1 |
Can you check if this related to #861? |
Also have a look at #862 (comment) |
I'm not sure how to do that. The tinker output doesn't call toIso8601String(), I only do it to get a string for display purposes. I see no production-code in Carbon that calls toIso8601String() at all, so it isn't used by subDays()/modify(). |
The problem does not exist when you use the add(CarbonInterval interval) method like:
So I think the problem is how modify is implemented. |
The problem exactly in "modify" implemented, i think we shoult discuss it in #883 now. There i described my vision how it should work. |
See #884 |
This issue is fixed by #884 |
Just a note I also had a bunch of failing tests just using |
This issue was solved in v1.23. |
I'm seeing the timezone value added into the result after
addDays(1)
andsubDays(1)
. The last value ends up at 11:23:45 while still keeping the same timezone. I expect it to end up at 01:23:45.Output from Laravel's tinker tool:
Failing test:
The text was updated successfully, but these errors were encountered: