Page MenuHomePhorge

Use ->addMonthsWithoutOverflow() and ->subMonthsWithoutOverflow()
ClosedPublic

Authored by vanmeeuwen on Mar 30 2020, 10:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 6:53 AM
Unknown Object (File)
Wed, Apr 3, 6:02 AM
Unknown Object (File)
Mar 11 2024, 10:34 PM
Unknown Object (File)
Feb 21 2024, 2:01 PM
Unknown Object (File)
Feb 12 2024, 1:47 AM
Unknown Object (File)
Feb 10 2024, 1:37 AM
Unknown Object (File)
Feb 6 2024, 5:13 PM
Unknown Object (File)
Feb 1 2024, 12:10 AM
Subscribers
Restricted Project

Details

Summary

Carbon::now()->subMonth(1) for 2020-03-30 will end up as 2020-03-01, which simply isn't a month.

Test Plan

phpunit failed.

apply change.

phpunit succeeds.

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vanmeeuwen created this revision.
machniak subscribed.

I'd re-check on 1st of month.

This revision is now accepted and ready to land.Mar 30 2020, 11:04 AM
This revision was automatically updated to reflect the committed changes.