mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
@@ -147,6 +147,16 @@ trait GetConfigurationData
|
||||
$index = (string) trans('firefly.last_thirty_days');
|
||||
$ranges[$index] = [$thirty, new Carbon];
|
||||
|
||||
// month to date:
|
||||
$monthBegin = Carbon::now()->startOfMonth();
|
||||
$index = (string) trans('firefly.month_to_date');
|
||||
$ranges[$index] = [$monthBegin, new Carbon];
|
||||
|
||||
// year to date:
|
||||
$yearBegin = Carbon::now()->startOfYear();
|
||||
$index = (string) trans('firefly.year_to_date');
|
||||
$ranges[$index] = [$yearBegin, new Carbon];
|
||||
|
||||
// everything
|
||||
$index = (string) trans('firefly.everything');
|
||||
$ranges[$index] = [$first, new Carbon];
|
||||
|
||||
@@ -35,6 +35,8 @@ return [
|
||||
'last_seven_days' => 'Last seven days',
|
||||
'last_thirty_days' => 'Last thirty days',
|
||||
'last_180_days' => 'Last 180 days',
|
||||
'month_to_date' => 'Month to date',
|
||||
'year_to_date' => 'Year to date',
|
||||
'YTD' => 'YTD',
|
||||
'welcome_back' => 'What\'s playing?',
|
||||
'everything' => 'Everything',
|
||||
|
||||
Reference in New Issue
Block a user