Skip to content

Commit

Permalink
Merge pull request #251 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix add month with no overflow
  • Loading branch information
dbarzin authored Jan 23, 2025
2 parents a4ffbec + a23875e commit 01cb197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ControlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ public function make(Request $request)
$next_date =
$control->next_date === null
? \Carbon\Carbon::createFromFormat('Y-m-d', $control->plan_date)
->addMonths($control->periodicity)
->addMonthsNoOverflow($control->periodicity)
->format('Y-m-d')
: $control->next_date->format('Y-m-d');
}
Expand Down

0 comments on commit 01cb197

Please sign in to comment.