adjust property name to make it work with changes calendar bundle

This commit is contained in:
2022-09-08 11:59:44 +02:00
parent 48548e020f
commit 2e3f977f3d
14 changed files with 24 additions and 23 deletions

View File

@@ -55,10 +55,10 @@ class MonthYearAggregator implements AggregatorInterface
return 'by month and year';
}
$month = substr($value, 0, 2);
$year = substr($value, 3, 4);
$month = (int)substr($value, 0, 2);
$year = (int)substr($value, 3, 4);
return strftime('%B %G', mktime(0, 0, 0, $month, '1', $year));
return strftime('%B %G', mktime(0, 0, 0, $month, 1, $year));
};
}
@@ -69,6 +69,6 @@ class MonthYearAggregator implements AggregatorInterface
public function getTitle(): string
{
return 'Group appointments by month and year';
return 'Group calendars by month and year';
}
}