Skip to content

Commit

Permalink
Fix calculation of penance day
Browse files Browse the repository at this point in the history
  • Loading branch information
micronax committed Apr 17, 2023
1 parent fb2865d commit 52b1448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52b1448

Please sign in to comment.