Skip to content

Commit

Permalink
calculate psalter_week for weekdays of advent and lent
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 10, 2024
1 parent 1a99275 commit 0a2dcc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Paths/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ private function calculateWeekdaysAdvent(): void
);
$name = $dayOfTheWeek . " " . $nthStr;
$festivity = new Festivity($name, $weekdayAdvent, LitColor::PURPLE, LitFeastType::MOBILE);
$festivity->psalter_week = $this->Cal::psalterWeek($currentAdvWeek);
$this->Cal->addFestivity("AdventWeekday" . $weekdayAdventCnt, $festivity);
}

Expand Down Expand Up @@ -1962,6 +1963,7 @@ private function calculateWeekdaysLent(): void
);
$name = $dayOfTheWeek . " " . $nthStr;
$festivity = new Festivity($name, $weekdayLent, LitColor::PURPLE, LitFeastType::MOBILE);
$festivity->psalter_week = $this->Cal::psalterWeek($currentLentWeek);
} else {
$dayOfTheWeek = $this->CalendarParams->Locale == LitLocale::LATIN
? LatinUtils::LATIN_DAYOFTHEWEEK[ $weekdayLent->format('w') ]
Expand Down Expand Up @@ -2947,8 +2949,8 @@ private function applyOptionalMemorialDecree2009(): void
}
}

//13. Weekdays of Advent up until Dec. 16 included ( already calculated and defined together with weekdays 17 Dec. - 24 Dec. )
// Weekdays of Christmas season from 2 Jan. until the Saturday after Epiphany
//13. Weekdays of Advent up until Dec. 16 included ( already calculated and defined together with weekdays 17 Dec. - 24 Dec., @see calculateWeekdaysAdvent() )
// Weekdays of Christmas season from 2 Jan. until the Saturday after Epiphany (@see calculateWeekdaysChristmasOctave())
// Weekdays of the Easter season, from the Monday after the Octave of Easter to the Saturday before Pentecost
private function calculateWeekdaysMajorSeasons(): void
{
Expand Down

0 comments on commit 0a2dcc9

Please sign in to comment.