Skip to content

Commit

Permalink
Use the easter method
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickomeara committed Jan 22, 2024
1 parent ad264b0 commit cb241b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Countries/Australia.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function allHolidays(int $year): array
/** @return array<string, CarbonImmutable> */
protected function variableHolidays(int $year): array
{
$easter = CarbonImmutable::createFromTimestamp(easter_date($year))->setTimezone('Australia/Sydney');
$easter = $this->easter($year)->setTimezone('Australia/Sydney');

return [
'Good Friday' => $easter->subDays(2),
Expand Down

0 comments on commit cb241b9

Please sign in to comment.