Xref: utzoo news.admin:8147 news.software.b:4026 Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!wiley!david From: david@wiley.UUCP (David Hull) Newsgroups: news.admin,news.software.b Subject: Re: "Unparseable date" error from expire Keywords: B news Message-ID: <8689@wiley.UUCP> Date: 26 Jan 90 00:09:27 GMT References: <1556@fallst.UUCP> <1314@ursa-major.SPDCC.COM> Followup-To: news.software.b Organization: TRW Inc., Redondo Beach, CA Lines: 32 In article <1314@ursa-major.SPDCC.COM> gst@ursa-major.spdcc.COM (Gary S. Trujillo) writes: > expire: : Unparsable date "595973992" > expire: : Unparsable date "595974046" > expire: : Unparsable date "595974046" Patch level 18 to B news introduced a C news style history file, in which the dates in the history are stored as numbers instead of strings. The function cgtdate() was modified to understand the new date format, but for some reason rejects these new number dates if the number is less than 600000000. The following patch fixes the problem. -David Hull *** funcs2.c- Fri Oct 6 14:16:45 1989 --- funcs2.c Tue Dec 5 14:42:29 1989 *************** *** 216,222 **** *cp = '\0'; lasttime = atol(lastdatestr); ! if (lasttime > 600000000L) return lasttime; lasttime = getdate(lastdatestr, &Now); if (lasttime < 0) { --- 216,222 ---- *cp = '\0'; lasttime = atol(lastdatestr); ! if (lasttime > 100000000L) return lasttime; lasttime = getdate(lastdatestr, &Now); if (lasttime < 0) {