From owner-freebsd-questions@freebsd.org Sun Sep 8 21:55:28 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B3EA1E485E for ; Sun, 8 Sep 2019 21:55:28 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter06.peak.org (filter06.peak.org [69.59.194.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46RQ8H1VQTz4B4q for ; Sun, 8 Sep 2019 21:55:26 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta01.peak.org ([207.55.16.111]) by filter06.peak.org ({0c47b2c3-829a-4f18-b445-de68be8d048d}) via TCP (outbound) with ESMTPS id 20190908215523497_0000 for ; Sun, 08 Sep 2019 14:55:23 -0700 X-RC-FROM: X-RC-RCPT: Received: from localhost (localhost [127.0.0.1]) by zmail-mta01.peak.org (Postfix) with ESMTP id E50FA981E7 for ; Sun, 8 Sep 2019 14:55:17 -0700 (PDT) Received: from zmail-mta01.peak.org ([127.0.0.1]) by localhost (zmail-mta01.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5hH1_uzVyGuK for ; Sun, 8 Sep 2019 14:55:17 -0700 (PDT) Received: from mailproxy-lb-07.peak.org (mailproxy-lb-07.peak.org [207.55.17.97]) by zmail-mta01.peak.org (Postfix) with ESMTP id BD7759820D for ; Sun, 8 Sep 2019 14:55:17 -0700 (PDT) Received: from localhost.localnet ([127.0.0.1] helo=elm.localnet) by elm.localnet with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.1 (FreeBSD)) (envelope-from ) id 1i759Q-000CJ3-O3 for freebsd-questions@freebsd.org; Sun, 08 Sep 2019 14:55:16 -0700 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id x88LtF75047308; Sun, 8 Sep 2019 14:55:15 -0700 (PDT) (envelope-from carlj) From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Oddity in calendar output References: <86ftl6rd7c.fsf@elm.localnet> X-Clacks-Overhead: GNU Terry Pratchett Date: Sun, 08 Sep 2019 14:55:15 -0700 In-Reply-To: (Peter Boosten via freebsd-questions's message of "Sun, 8 Sep 2019 21:43:21 +0200") Message-ID: <86zhjepi64.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-Rspamd-Queue-Id: 46RQ8H1VQTz4B4q X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 69.59.194.82 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-2.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-0.01)[country: US(-0.05)]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; RCVD_IN_DNSWL_LOW(-0.10)[82.194.59.69.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:395796, ipnet:69.59.194.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2019 21:55:28 -0000 Peter Boosten via freebsd-questions writes: >> Op 8 sep. 2019, om 17:59 heeft Carl Johnson het volgend= e geschreven: >>=20 >> I just realized that one calendar(1) entry seems to be notifying me in >> the wrong week. I have a calendar entry:=20 >> 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. >>=20 >> 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=E2=80=99s > 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=3D240427 --=20 Carl Johnson carlj@peak.org