github briannesbitt/Carbon 2.37.0

latest releases: 3.6.0, 2.72.5, 3.5.0...
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

Don't miss a new Carbon release

NewReleases is sending notifications on new releases.