carbon stuff

This commit is contained in:
2018-11-28 22:00:03 -06:00
parent 1c0a58df74
commit 38214aaef5

View File

@@ -46,8 +46,8 @@ class FinancesController extends Controller
$end->hour = 23; $end->hour = 23;
$end->minute = 59; $end->minute = 59;
$end->second = 59; $end->second = 59;
$startLast = Carbon::now()->firstDayOfPreviousMonth(); $startLast = new Carbon('first day of last month');
$endLast = Carbon::now()->lastDayOfPreviousMonth(); $endLast = new Carbon('last day of last month');
$endLast->hour = 23; $endLast->hour = 23;
$endLast->minute = 59; $endLast->minute = 59;
$endLast->second = 59; $endLast->second = 59;