|
|
@ -295,7 +295,7 @@ class PublicHolidayCalendar {
|
|
|
|
private static function calculateGrandMotherDay (int $year): DateTimeImmutable {
|
|
|
|
private static function calculateGrandMotherDay (int $year): DateTimeImmutable {
|
|
|
|
$grandMotherDay = static::createDate($year, 3, 1);
|
|
|
|
$grandMotherDay = static::createDate($year, 3, 1);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$grandMotherDay = $grandMotherDay->sub(new DateInterval('P' . (7 - (int)$grandMotherDay->format('N')) . 'D'));
|
|
|
|
$grandMotherDay = $grandMotherDay->add(new DateInterval('P' . (7 - (int)$grandMotherDay->format('N')) . 'D'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception) {
|
|
|
|
catch (Exception) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|