From owner-freebsd-questions@freebsd.org Mon Sep 9 17:24:31 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 B1947D901D for ; Mon, 9 Sep 2019 17:24:31 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from blaine.gmane.org (195-159-176-226.customer.powertech.no [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Rw5B3bWDz4GfB for ; Mon, 9 Sep 2019 17:24:29 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1i7NOn-000WUX-89 for freebsd-questions@freebsd.org; Mon, 09 Sep 2019 19:24:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Jonesy Subject: Re: Oddity in calendar output Date: Mon, 9 Sep 2019 17:24:15 -0000 (UTC) Message-ID: References: <86ftl6rd7c.fsf@elm.localnet> <86zhjepi64.fsf@elm.localnet> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (FreeBSD) X-Rspamd-Queue-Id: 46Rw5B3bWDz4GfB X-Spamd-Bar: ++++ X-Spamd-Result: default: False [4.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.11)[-0.106,0]; FROM_HAS_DN(0.00)[]; HFILTER_HOSTNAME_1(0.50)[195-159-176-226.customer.powertech.no]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane.org]; DMARC_POLICY_REJECT(2.00)[jonz.net : No valid SPF, No valid DKIM,reject]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2116, ipnet:195.159.0.0/16, country:NO]; FROM_NEQ_ENVFROM(0.00)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane.org]; IP_SCORE(0.10)[ipnet: 195.159.0.0/16(-0.04), asn: 2116(0.53), country: NO(-0.01)]; RCVD_COUNT_TWO(0.00)[2] 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 17:24:31 -0000 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