diff options
Diffstat (limited to 'internal/calendar/temporal.go')
| -rw-r--r-- | internal/calendar/temporal.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/calendar/temporal.go b/internal/calendar/temporal.go index ab1a742..dadae49 100644 --- a/internal/calendar/temporal.go +++ b/internal/calendar/temporal.go @@ -215,6 +215,11 @@ func temporal(date time.Time, sel Selection) temporalDay { if sun { return sundayDay(Advent, "advent-sunday-"+itoa(week), col, week) } + // From Dec 17 the weekday readings are proper to the DATE (the "O Antiphons" + // days), not the Advent week, so key them by date rather than by week-day. + if privFeria && date.Day() <= 24 { + return ferialDay(Advent, "advent-dec-"+itoa(date.Day()), Violet, week, true) + } return ferialDay(Advent, "advent-"+itoa(week)+"-"+weekdayAbbr(wd), Violet, week, privFeria) case !date.Before(christmasThis): // Dec 25..Dec 31 — Christmas octave |
