diff --git a/Classes/Service/CalendarService.php b/Classes/Service/CalendarService.php index 3f409b3ed..4011fbe69 100644 --- a/Classes/Service/CalendarService.php +++ b/Classes/Service/CalendarService.php @@ -165,15 +165,15 @@ public function getWeekConfig(DateTime $firstDayOfCurrentWeek): array return [ 'previous' => [ 'weeknumber' => (int)$firstDayPreviousWeek->format('W'), - 'year' => (int)$firstDayPreviousWeek->format('Y'), + 'year' => (int)$firstDayPreviousWeek->format('o'), ], 'current' => [ 'weeknumber' => (int)$firstDayOfCurrentWeek->format('W'), - 'year' => (int)$firstDayOfCurrentWeek->format('Y'), + 'year' => (int)$firstDayOfCurrentWeek->format('o'), ], 'next' => [ 'weeknumber' => (int)$firstDayNextWeek->format('W'), - 'year' => (int)$firstDayNextWeek->format('Y'), + 'year' => (int)$firstDayNextWeek->format('o'), ], ]; }