You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think in the latest version of Carbon: diffInRealMinutes is getting deprecated and this is now the preferred method: diffInUTCMinute:
They give this warning:
Use the method diffInUTCMinute instead to make it more explicit about what it does.
On next major version, "float" prefix will be removed (as all diff are now returning floating numbers) and "Real" methods will be removed in favor of "UTC" because what it actually does is to convert both dates to UTC timezone before comparison, while by default it does it only if both dates don't have exactly the same timezone (Note: 2 timezones with the same offset but different names are considered different as it's not safe to assume they will always have the same offset).
Thanks for the report, it's an interesting one. I had a look at the code of both versions, and then the key is the function callDiffAlias() in \Carbon\Traits\Date, which gives a hint as top what should be used, which in this case is diffInMinutes
Subject of the issue
I think in the latest version of Carbon: diffInRealMinutes is getting deprecated and this is now the preferred method: diffInUTCMinute:
They give this warning:
Steps to reproduce
using latest carbon version:
https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Traits/Date.php line:2756
Is it an option to switch to the diffInUTCMinute?
The text was updated successfully, but these errors were encountered: