diff --git a/Classes/Service/CalendarService.php b/Classes/Service/CalendarService.php index 6beeb2a2a..9ce2e37bb 100644 --- a/Classes/Service/CalendarService.php +++ b/Classes/Service/CalendarService.php @@ -167,15 +167,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'), ], ]; }