Date: Tue, 30 Nov 1999 10:28:51 GMT From: jhs@freebsd.org To: FreeBSD-gnats-submit@freebsd.org Subject: bin/15182: /usr/src/usr.bin/calendar Nov 31* from * Wed-1 Message-ID: <199911301028.KAA41790@jhs.muc.de>
next in thread | raw e-mail | index | archive | help
>Number: 15182 >Category: bin >Synopsis: "* Wed-1 event" in calendar produces "31 Nov* event" in mail >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 30 02:30:02 PST 1999 >Closed-Date: >Last-Modified: >Originator: Julian H. Stacey jhs@jhs.muc.de >Release: FreeBSD 3.3-RELEASE i386 >Organization: >Environment: >Description: .calendar/calendar containing just 1 line: * Wed-1 MECC, Last Wednesday In Month calendar outputs Nov 31* MECC, Last Wednesday In Month >How-To-Repeat: Put in your ~/.calendar * Wed-1 There is no 31 Nov 1999, Wednesday is 1st December wind the clock back to 30 Nov 1999, run calendar. & get the same impossible date I did ! >Fix: I looked at 3.3/src/usr.bin/calendar/day.c: int daytab[][14] = { { 0, -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364 }, { 0, -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, }; that 333 seems correct, so a fix is not as trivial as I hoped ! >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911301028.KAA41790>