Return to BSD News archive
Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!fen
From: fen@netcom.com (Fen Labalme)
Subject: Re: FreeBSD-1.0.2: calendar trouble :-(
Message-ID: <fenCJ68ro.330@netcom.com>
Organization: NETCOM On-line Communication Services (408 241-9760 guest)
X-Newsreader: TIN [version 1.2 PL1]
References: <CJ3nBA.pM@luva.stgt.sub.org>
Date: Wed, 5 Jan 1994 19:28:34 GMT
Lines: 40
Michael Giegerich (migieger@luva.stgt.sub.org) wrote:
: Since Jan. 1, 1994 my calendar seems to have lost a day;
: i.e. I get notes about calendar entries from yesterday
Seems my previous response didn't get through. Yes, I fixed this same
bug on my NetBSD-0.9 system, and posted the diff in comp.os.386bsd.bugs,
but here it is again:
======
% diff -c calendar.c.~1~ calendar.c
*** calendar.c.~1~ Tue Jan 4 11:48:24 1994
--- calendar.c Tue Jan 4 14:40:58 1994
***************
*** 139,144 ****
/* 1-based month, 0-based days, cumulative */
int daytab[][14] = {
! 0, 0, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364,
! 0, 0, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365,
};
struct tm *tp;
--- 139,144 ----
/* 1-based month, 0-based days, cumulative */
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,
};
struct tm *tp;
======
Enjoy!
Fen
--
Fen Labalme for EFF info, email <eff@eff.org>
Broadcatch Technologies for LPF info, email <league@ai.mit.edu>
<fen@netcom.com> for CPSR info, email <cpsr@cpsr.org>
415/731-1174 protect your freedoms! PGP Key ID: 1024/0AF8FD