Skip to content

Commit

Permalink
fix timezone when creating farmers day
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikpeba4ll committed Jan 18, 2024
1 parent 12a8882 commit 1d7836e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Countries/Ghana.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1d7836e

Please sign in to comment.