From owner-freebsd-questions@freebsd.org Mon Sep 9 22:01:27 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 5968EE2F05 for ; Mon, 9 Sep 2019 22:01:27 +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 46S2Dj5YxRz4jN7 for ; Mon, 9 Sep 2019 22:01:25 +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 20190909220121777_0000 for ; Mon, 09 Sep 2019 15:01:21 -0700 X-RC-FROM: X-RC-RCPT: Received: from localhost (localhost [127.0.0.1]) by zmail-mta01.peak.org (Postfix) with ESMTP id B0D3298291 for ; Mon, 9 Sep 2019 15:01:16 -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 TnXEKphMLqvg for ; Mon, 9 Sep 2019 15:01:16 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta01.peak.org (Postfix) with ESMTP id 849D198295 for ; Mon, 9 Sep 2019 15:01:16 -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 1i7Ril-000Lxi-I0 for freebsd-questions@freebsd.org; Mon, 09 Sep 2019 15:01:15 -0700 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id x89M1EH5084425; Mon, 9 Sep 2019 15:01:14 -0700 (PDT) (envelope-from carlj) From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Oddity in calendar output References: <86ftl6rd7c.fsf@elm.localnet> <86zhjepi64.fsf@elm.localnet> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 09 Sep 2019 15:01:14 -0700 In-Reply-To: (Jonesy via freebsd-questions's message of "Mon, 9 Sep 2019 17:24:15 -0000 (UTC)") Message-ID: <86imq1p1sl.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: 46S2Dj5YxRz4jN7 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.998,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: Mon, 09 Sep 2019 22:01:27 -0000 Jonesy via freebsd-questions writes: > 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: >>>>=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 > > Are you, like me, running your login on local (UTC +nn) time? > That might be a "factor" in the bug --- in that UTC Sunday=20 > (the 1st) would occur on your Saturday. > Just a think. :-) The system clock is set to UTC but the /etc/localtime has my local time zone, so I use Pacific time here (current PDT). That sounds like a possibility for how this could happen, but I'm not sure how to find something like that. Thanks for the suggestion. --=20 Carl Johnson carlj@peak.org