Fix determining traffic usage month end

This commit is contained in:
Deon George
2021-03-12 21:50:42 +11:00
parent fee4b5802e
commit 45c93283fb
2 changed files with 5 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ class Adsl extends ServiceType implements ServiceItem,ServiceUsage
// If we are before the 15th
if ($start->day < 15) {
$start = Carbon::createFromFormat('Y-m-d',$start->subMonth->format('Y-m-').'15');
$start = Carbon::createFromFormat('Y-m-d',$start->subMonth()->format('Y-m-').'15');
} else {
$start = $start->subDays($start->day-15);
}