🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #4059

Re: trn-3.4.1 keeps asking about new groups!

#4059
From: Wayne Davison
Date: Wed, 10 Jan 1996 00:00
19 lines
1372 bytes
I can see nothing wrong with the already-posted fix that changes the 1968
to 1969 since the code already handles February being 29 days long in a
leap year.  Here's the patch as a unified diff:

Index: nntp.c
@@ -320,5 +320,5 @@
 	day += maxdays[month];
 
-    ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60
+    ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60
 	  + mm) * 60 + ss;
 

The comment about A.D. 2400 will also eventually be changed to be A.D. 2100,
but this has no affect on the code.  :-)

...wayne..

Technical Details
Message-ID: <DKzFwA.MAo@clarinet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
References: <DKnuzI.FsG@yc.estec.esa.nl> <4cgtn4$npm@sidhe.hsc-sec.fr> <4clqq6$j5c@newsflash.concordia.ca> <4cne3v$8hl@zippy.cais.net>

Show Full Headers
Complete Article Headers
Message-ID: <DKzFwA.MAo@clarinet.com>
Subject: Re: trn-3.4.1 keeps asking about new groups!
Date: Wed, 10 Jan 1996 00:00:00 +0000
From: wayne@clarinet.com (Wayne Davison)
References: <DKnuzI.FsG@yc.estec.esa.nl> <4cgtn4$npm@sidhe.hsc-sec.fr> <4clqq6$j5c@newsflash.concordia.ca> <4cne3v$8hl@zippy.cais.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
X-Deja-AN: 134795988
Distribution: inet
Sender: wayne@clarinet.com (Wayne Davison)
Organization: ClariNet Communications Corp.
Newsgroups: news.software.readers,news.admin.misc,news.software.nntp