[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2084: BUG: time conversion in trn



Hello,

  there is a bug in trn, also present in the upstream version.
By now most people will have discovered it as it started on
1 Januari. There is a bug in the NNTP time conversion which
causes trn to think there are a lot of new newsgroups every
time it starts up.

I've fixed it for now - the real fix would be to use the
ANSI mktime() function instead.

I think it is the package maintainers task to report this to
Wayne Davidson?

--- nntp.c.ORIG	Tue Jan  2 23:29:37 1996
+++ nntp.c	Wed Jan  3 11:23:53 1996
@@ -319,7 +319,7 @@
     for (month--; month; month--)
 	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;

     return ss;
--
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:info@cistron.nl          http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)


Reply to: