Date: Tue, 04 Jan 2000 09:46:10 +1100 From: Gregory Bond <gnb@itga.com.au> To: ports@freebsd.org, stable@freebsd.org Subject: [Patch] hylafax port stats not Y2K Message-ID: <200001032246.JAA26513@lightning.itga.com.au>
next in thread | raw e-mail | index | archive | help
Hylafax 4.0.2 on freeBSD 3.4-STABLE. The stats reporting from hylafax is not y2k-safe. Patch follows. doorman## diff -u xferstats.orig xferstats --- xferstats.orig Wed May 12 00:36:05 1999 +++ xferstats Tue Jan 4 09:43:46 2000 @@ -186,7 +186,9 @@ # function cvtDateTime(s) { - yday = substr(s,7,2)*365 + substr(s,4,2) - 1; + y = substr(s,7,2); + if ( y < 50) y += 100; + yday = y*365 + substr(s,4,2) - 1; mon = substr(s,0,2) + 0; for (i = 0; i < mon; i++) yday += daysInMonth[i]; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001032246.JAA26513>