Merge pull request #6502 from D7032E-Group-6/develop

Issue #5234 fix
This commit is contained in:
James Cole
2022-10-06 06:09:51 +02:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -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];

View File

@@ -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',