From 6f213c1fd9dc9556c8a375ee36b12aced6d975a1 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 19 Jan 2024 14:45:44 +0100 Subject: [PATCH] wip --- src/Countries/Country.php | 3 ++- src/Countries/Venezuela.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Countries/Country.php b/src/Countries/Country.php index 2c5547021..9416ca65e 100644 --- a/src/Countries/Country.php +++ b/src/Countries/Country.php @@ -42,7 +42,8 @@ public static function make(): static protected function easter(string $year): CarbonImmutable { - $easter = CarbonImmutable::createFromFormat('Y-m-d', "{$year}-03-21"); + $easter = CarbonImmutable::createFromFormat('Y-m-d', "{$year}-03-21") + ->startOfDay(); return $easter->addDays(easter_days($year)); } diff --git a/src/Countries/Venezuela.php b/src/Countries/Venezuela.php index 01edb601f..10082f44d 100644 --- a/src/Countries/Venezuela.php +++ b/src/Countries/Venezuela.php @@ -33,8 +33,8 @@ protected function variableHolidays(int $year): array $easter = $this->easter($year); return [ - 'Lunes de Carnaval' => $easter->subDays(47), - 'Martes de Carnaval' => $easter->subDays(46), + 'Lunes de Carnaval' => $easter->subDays(48), + 'Martes de Carnaval' => $easter->subDays(42), 'Jueves Santo' => $easter->subDays(3), 'Viernes Santo' => $easter->subDays(2), ];