mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Code optimizations.
This commit is contained in:
@@ -124,8 +124,7 @@ class Range
|
||||
// ignore preference. set the range to be the current month:
|
||||
if (!app('session')->has('start') && !app('session')->has('end')) {
|
||||
$viewRange = app('preferences')->get('viewRange', '1M')->data;
|
||||
$start = new Carbon;
|
||||
$start = app('navigation')->updateStartDate($viewRange, $start);
|
||||
$start = app('navigation')->updateStartDate($viewRange, new Carbon);
|
||||
$end = app('navigation')->updateEndDate($viewRange, $start);
|
||||
|
||||
app('session')->put('start', $start);
|
||||
|
Reference in New Issue
Block a user