diff --git a/src/Countries/Greece.php b/src/Countries/Greece.php index 290a34f10..c14bdd890 100644 --- a/src/Countries/Greece.php +++ b/src/Countries/Greece.php @@ -29,16 +29,17 @@ protected function allHolidays(int $year): array /** @return array */ protected function variableHolidays(int $year): array { - $orthodoxEaster = $this->orthodoxEaster($year); + $orthodoxEaster = $this->orthodoxEaster($year); + $megaliTetarti = $orthodoxEaster->copy()->subDays(4); + $megaliPempti = $orthodoxEaster->copy()->subDays(3); $megaliParaskevi = $orthodoxEaster->copy()->subDays(2); $megaloSavvato = $orthodoxEaster->copy()->subDay(); $deuteraPasha = $orthodoxEaster->copy()->addDay(); + $protomagia = CarbonImmutable::createFromDate($year, 5, 1)->startOfDay(); - $protomagia = CarbonImmutable::createFromDate($year, 5, 1); - $moveProtomagia = [$megaliParaskevi, $megaloSavvato, $orthodoxEaster, $deuteraPasha]; - - if (in_array($protomagia, $moveProtomagia, true)) { + $moveProtomagia = [$megaliTetarti, $megaliPempti, $megaliParaskevi, $megaloSavvato, $orthodoxEaster, $deuteraPasha]; + if (in_array($protomagia, $moveProtomagia)) { $protomagia = $orthodoxEaster->copy()->addDays(2); } diff --git a/tests/.pest/snapshots/Countries/GreeceTest/it_can_calculate_hellenic_holidays.snap b/tests/.pest/snapshots/Countries/GreeceTest/it_can_calculate_hellenic_holidays.snap index 00c8075cc..6d0af90fb 100644 --- a/tests/.pest/snapshots/Countries/GreeceTest/it_can_calculate_hellenic_holidays.snap +++ b/tests/.pest/snapshots/Countries/GreeceTest/it_can_calculate_hellenic_holidays.snap @@ -15,10 +15,6 @@ "name": "25\u03b7 \u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5", "date": "2024-03-25" }, - { - "name": "\u03a0\u03c1\u03c9\u03c4\u03bf\u03bc\u03b1\u03b3\u03b9\u03ac", - "date": "2024-05-01" - }, { "name": "\u039c\u03b5\u03b3\u03ac\u03bb\u03b7 \u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae", "date": "2024-05-03" @@ -31,6 +27,10 @@ "name": "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1 \u03c4\u03bf\u03c5 \u03a0\u03ac\u03c3\u03c7\u03b1", "date": "2024-05-06" }, + { + "name": "\u03a0\u03c1\u03c9\u03c4\u03bf\u03bc\u03b1\u03b3\u03b9\u03ac", + "date": "2024-05-07" + }, { "name": "\u0391\u03b3\u03af\u03bf\u03c5 \u03a0\u03bd\u03b5\u03cd\u03bc\u03b1\u03c4\u03bf\u03c2", "date": "2024-06-24"