From 52b14483a9dc87344206b3a9eef0af96cf2acaed Mon Sep 17 00:00:00 2001 From: Fabian Golle Date: Mon, 17 Apr 2023 22:34:28 +0200 Subject: [PATCH] Fix calculation of penance day --- src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php b/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php index 81ba4b1..1644fa8 100644 --- a/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php +++ b/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php @@ -140,8 +140,7 @@ public static function getHolidays($year, $states = self::ALL_STATES) $states = [$states]; } - $penanceDay = date('Y-m-d', strtotime("-40 days", $easterSunday)); - + $penanceDay = strtotime("last Wednesday", mktime(0, 0, 0, 11, 23, $year)); // For all states $holidays['Neujahr'] = mktime(0, 0, 0, 1, 1, $year);