🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.misc
1 messages
1 total messages Started by Gabor Kiss [Bitman] Tue, 01 Feb 2000 00:00
xvnews Y2K patch
#1988
Author: Gabor Kiss [Bitman]
Date: Tue, 01 Feb 2000 00:00
30 lines
1255 bytes
xvnews 2.3.2 has an artifical limitation.
All years after 1999 treated as invalid.
All displayed header contains Date: of Epoch minus 1 second
in local time.

Apply this patch to correct the problem.

--- getdate.y	Sun Sep 25 20:20:10 1994
+++ ~/src/xvnews-2.3.2/getdate.y	Tue Feb  1 10:14:47 2000
@@ -119,7 +119,7 @@
 	if (yy < 0) yy = -yy;
 	if (yy < 100) yy += 1900;
 	mdays[1] = 28 + (yy%4 == 0 && (yy%100 != 0 || yy%400 == 0));
-	if (yy < epoch || yy > 1999 || mm < 1 || mm > 12 ||
+	if (yy < epoch || mm < 1 || mm > 12 ||
 		dd < 1 || dd > mdays[--mm]) return (-1);
 	jdate = dd-1;
         for (i=0; i<mm; i++) jdate += mdays[i];


Note: xvnews 2.3.2 has a Y2K certificate. :-)
See http://www.sit.ulaval.ca/An2000/Unix/xvnews.html

Cheers

Gabor


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads