Skip to content

Commit

Permalink
Fix easter calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
micronax authored Apr 13, 2022
1 parent f340c9e commit 9a7b5b4
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 @@ -118,7 +118,7 @@ public function getGermanHolidaysForDay($states = self::ALL_STATES)
*/
public static function getEasterSunday($year)
{
$easter = self::createFromDate($year, 03, 21);
$easter = self::createFromDate($year, 03, 21)->startOfDay();

return $easter->addDays(easter_days($year));
}
Expand Down

0 comments on commit 9a7b5b4

Please sign in to comment.