On Sun, Dec 04, 2022 at 08:02:36AM -0800, Richard Narron wrote:
> Advent is the Sunday that is 4 weeks before the Sunday before Christmas.
> 
> In OpenBSD 7.2, I configured the .calendar/calendar to
> 
> #include #include <calendar.christian>
> 
> And this month (December 2022) the calendar message wrongly shows
> Advent on December 4:
> 
>   Dec 04* First Sunday of Advent (4th Sunday before Christmas)
> 
> Advent was actually on November 27, 2022...
> 
> The bug is because of these lines in calendar.christian:
> 
>   11/SunLast      First Sunday of Advent (4th Sunday before Christmas)
>   12/SunFirst     First Sunday of Advent (4th Sunday before Christmas)
> 
> Sometimes Advent starts on the third Sunday of November, not always
> the last Sunday of November.
> 
> The "First Sunday of Advent" never occurs in December and only occurs
> in November.
> 
> So these lines need to be changed...
> 
> My idea is to replace these two lines using a new "special event"
> called "Advent":
> 
>   Advent  First Sunday of Advent (4th Sunday before Christmas)
>   Advent+7        Second Sunday of Advent (3rd Sunday before Christmas)
>   Advent+14       Third Sunday of Advent (2nd Sunday before Christmas)
>   Advent+21       Fourth Sunday of Advent (Sunday before Christmas)
> 
> Here are 5 patches to the 7.2 /usr/src/usr.bin/calendar files:
> 

hi.

i can;t comment on your code or whether such a soution is preferred,
but i can point you to calendar(1) itself:

         calendar.christian    Christian holidays (should be updated
                               yearly by the local system
                               administrator so that roving holidays
                               are set correctly for the current
                               year).

so the idea is the system admin sets it. though maybe there are better
solutions now...

anyway it looks like somehow we have an extra entry for advent, and we
should just have one. i won;t attempt an edit at the minute in case
there is any follow up.

jmc

Reply via email to