Carbon v2.37.0 Release Notes

Release Date: 2020-07-28 // over 3 years ago
  • Complete commits list: 2.36.1...2.37.0

    ๐Ÿฑ โš ๏ธ Since 2.37.0 CarbonInterval ->total() method and ->total* properties take the invert while it was previously omitted due to a bug. This means it could be a breaking change for situations expecting an absolute total and you will have to use abs() (for instance abs($interval->totalSeconds)) to get an absolute value again.

    Summary:

    • ๐ŸŒ #2129 Improved Panjabi translations
    • ๐ŸŒ #2132 Improved Kurdish translations
    • #2138 Implemented standalone months for Lithuanian language
    • โœ… #2137 Allowed false in setTestNow()
    • ๐Ÿ›  #2136 Fixed rounding result with inverted interval (or diffForHumans with future dates)
    • ๐Ÿ›  #2126 Fixed CarbonInterval::cascade() calculation
    • ๐Ÿ›  #2126 Fixed ->total() method and ->total* properties invert flag handling