Skip to content

Commit

Permalink
Common orthodox easter date on all timezones - cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lowv-developer committed Jan 23, 2024
1 parent 6342868 commit 49ddfe3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Countries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ protected function orthodoxEaster(int $year): CarbonImmutable
$daysDifference = (int) ($year / 100) - (int) ($year / 400) - 2;

// Common orthodox easter date on all timezones
return CarbonImmutable::createFromTimestamp($timestamp)
->setTime(0, 0, 0)
->addDays($daysDifference + 1);
return CarbonImmutable::createFromTimestamp(strtotime("+$daysDifference days", $timestamp))->startOfDay()->addDay();
//return CarbonImmutable::createFromTimestamp(strtotime("+$daysDifference days", $timestamp));
}

Expand Down

0 comments on commit 49ddfe3

Please sign in to comment.