Oddity in calendar output

Jonesy SPAM_TRAP_gmane at jonz.net
Mon Sep 9 17:24:31 UTC 2019


On Sun, 08 Sep 2019 14:55:15 -0700, Carl Johnson wrote:
> Peter Boosten via freebsd-questions  writes:
>>> Op 8 sep. 2019, om 17:59 heeft Carl Johnson het volgende geschreven:
>>> 
>>> I just realized that one calendar(1) entry seems to be notifying me in
>>> the wrong week.  I have a calendar entry: 
>>>     September SatSecond     Shrewsbury Fair (2 days)
>>> in my ~/calendar file to notify me on the second Saturday, but it
>>> notified me on the first Saturday.  I get the following results:
>>>     $ calendar -t 07-09-2019
>>>     Sep  7* Shrewsbury Fair (2 days)
>>>     $ calendar -t 14-09-2019
>>>     $
>>> September 7 is clearly the first Saturday, so why does it think that it
>>> is the second Saturday and the 14th is not?  I also tried changing
>>> 'SatSecond' to 'Sat+2', but that gives the same result.
>>> 
>>> Am I missing something obvious, or should I file a PR on this?  Thanks
>>> for any suggestions.
>>
>> It only seems to be wrong for this years September. Next year it’s
>> okay again. Also, if you change the month to October, it works like it
>> should.
>
> I did a little more checking and it also fails in September 2024.  There
> are also similar problems in April and July of 2018.  The common factor
> seems to be that all of those have Sunday as the first day of the month.
> I submitted it as PR 240427 [1].
>
> Thanks for your reply.
>
> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240427

Are you, like me, running your login on local (UTC +nn) time?
That might be a "factor" in the bug --- in that UTC Sunday 
(the 1st) would occur on your Saturday.
Just a think.  :-)

(But, your examle of "Shrewsbury Fair" means, maybe, not....)

Jonesy
-- 
  Marvin L Jones    | Marvin      | W3DHJ.net  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy     |  FreeBSD
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm



More information about the freebsd-questions mailing list