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 f48fd16 commit fb2865d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function getHolidays($year, $states = self::ALL_STATES)
$states = [$states];
}

$penanceDay = mktime(0, 0, 0, 11, 22 - ($year - 1 + ((int)((int)($year / 4)) % 7)), $year);
$penanceDay = date('Y-m-d', strtotime("-40 days", $easterSunday));


// For all states
Expand Down

0 comments on commit fb2865d

Please sign in to comment.