I recently updated nesbot/Carbon from 2.67 to 3.8.6. When running the following piece of code, I used to get a positive value, now I get a negative value. Has the order of operation changed for diffInSeconds()?
$time_before = Carbon::now();
// << call that takes 85 s >>
$time_after = Carbon::now();
$duration_in_secs = $time_after->diffInSeconds($time_before);
This gives me:
Duration: -84.766262 seconds
before:2025-03-02 02:53:35
after:2025-03-02 02:55:00