From 1d7836e997c1a48f47a5fa8913a88ab444742796 Mon Sep 17 00:00:00 2001 From: Victor Ikpeba Date: Thu, 18 Jan 2024 15:04:39 +0000 Subject: [PATCH] fix timezone when creating farmers day --- src/Countries/Ghana.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Countries/Ghana.php b/src/Countries/Ghana.php index c75ccb5b0..ec886591b 100644 --- a/src/Countries/Ghana.php +++ b/src/Countries/Ghana.php @@ -31,12 +31,12 @@ protected function variableHolidays(int $year): array $easter = CarbonImmutable::createFromTimestamp(easter_date($year)) ->setTimezone('Africa/Accra'); - $farmersDay = (new CarbonImmutable('first friday of December ' . $year))->setTimezone('Africa/Accra'); + $farmersDay = (new CarbonImmutable('first friday of December ' . $year, 'Africa/Accra')); return [ - 'Farmers Day' => $farmersDay->addDay(), + 'Farmers Day' => $farmersDay, - 'Good Friday' => $easter->subDay(2), + 'Good Friday' => $easter->subDays(2), 'Easter Monday' => $easter->addDay(), // NB: *** There are no fixed dates for the Eid-Ul-Fitr and Eid-Ul-Adha because they are movable feasts.