Code for upgrade of various libraries.

This commit is contained in:
James Cole
2019-03-02 21:18:26 +01:00
parent 48219c9af3
commit 4ca60ca92a
11 changed files with 45 additions and 45 deletions

View File

@@ -364,7 +364,7 @@ class SummaryController extends Controller
{
/** @var User $user */
$user = auth()->user();
$date = Carbon::create()->startOfDay();
$date = Carbon::now()->startOfDay();
// start and end in the future? use $end

View File

@@ -235,7 +235,7 @@ class ApplyRules extends Command
private function parseDates(): void
{
// parse start date.
$startDate = Carbon::create()->startOfMonth();
$startDate = Carbon::now()->startOfMonth();
$startString = $this->option('start_date');
if (null === $startString) {
/** @var JournalRepositoryInterface $repository */

View File

@@ -243,7 +243,7 @@ class BoxController extends Controller
*/
public function netWorth(): JsonResponse
{
$date = Carbon::create()->startOfDay();
$date = Carbon::now()->startOfDay();
// start and end in the future? use $end
if ($this->notInSessionRange($date)) {

View File

@@ -140,12 +140,12 @@ trait GetConfigurationData
}
// last seven days:
$seven = Carbon::create()->subDays(7);
$seven = Carbon::now()->subDays(7);
$index = (string)trans('firefly.last_seven_days');
$ranges[$index] = [$seven, new Carbon];
// last 30 days:
$thirty = Carbon::create()->subDays(30);
$thirty = Carbon::now()->subDays(30);
$index = (string)trans('firefly.last_thirty_days');
$ranges[$index] = [$thirty, new Carbon];