diff --git a/project/src/Helper/MonthHelper.php b/project/src/Helper/MonthHelper.php index d21705f..e060632 100644 --- a/project/src/Helper/MonthHelper.php +++ b/project/src/Helper/MonthHelper.php @@ -6,14 +6,13 @@ class MonthHelper public function takeMonths() : array { $startDate = new \DateTime("-6 months"); - + $startDate->modify("first day of this month"); $return = []; for ($i=1; $i<=11; $i++) { $tmp = clone $startDate; $tmp->modify("+$i month"); $return[$i] = $tmp; } - return $return; } diff --git a/project/templates/navigation/switch_months.html.twig b/project/templates/navigation/switch_months.html.twig index 31ab962..59abca8 100644 --- a/project/templates/navigation/switch_months.html.twig +++ b/project/templates/navigation/switch_months.html.twig @@ -19,5 +19,22 @@ {% endfor %} +{#
#} {% endmacro %} \ No newline at end of file