From 9a7b5b4b6a1501ba2fbae701f769535578f5919c Mon Sep 17 00:00:00 2001 From: Fabian Golle Date: Wed, 13 Apr 2022 11:18:27 +0200 Subject: [PATCH] Fix easter calculation --- src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php b/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php index c5f61d8..8b68e6b 100644 --- a/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php +++ b/src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php @@ -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)); }