I am still seeing this problem, and have come across another clue. It works fine if a relative endday, such as -1, is also passed. In reading the bugs database closer, it also appears that bug 578570 may also be related.
I have confirmed this bug by searching on the htdig site with the following three GET strings sent via a telnet session - note how the final two hit counts differ: Search for 'startday', no date range (returns 50 hits) --- GET /cgi-bin/htsearch?method=and&words=startday HTTP/1.1 Host: www.htdig.org Search for 'startday', set startday to -60 (returns 0 hits) --- GET /cgi-bin/htsearch?method=and&words=startday&startday=-60 HTTP/1.1 Host: www.htdig.org Search for 'startday', set startday to -60 and endday to -1 (returns 1 hit) --- GET /cgi-bin/htsearch?method=and&words=startday&startday=-60&endday=-1 HTTP/1.1 Host: www.htdig.org Unfortunately, my C++ coding is non-existent, but the line which seems to me to be suspect is in Display.cc, line 1295-6: else if (!reldate) enddate.tm_year = endoftime->tm_year; Could this somehow be getting set to the same year as the startdate.tm_year? Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation ---------- Forwarded message ---------- Date: Tue, 7 Jan 2003 10:45:18 -0500 (EST) From: William R. Knox <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [htdig] Bug in startday code, v. 3.1.6 (patched) I believe that I have come across a bug in the startday code in version 3.1.6 (I have applied the metadate.0 patch and the timet_enddate.1 patch). Briefly, using a negative number in the startday that overlaps a year boundary (i.e. using a number greater than -7 today, 1/7/03) causes only entries for the previous year to be displayed. Here is an example: Here are the MATCHES and date entries for the same search: Using a relative startday; <input type="hidden" name="matches" value="12"> <input type="hidden" name="startday" value="-14"> <input type="hidden" name="startmonth" value=""> <input type="hidden" name="startyear" value=""> <input type="hidden" name="endday" value=""> <input type="hidden" name="endmonth" value=""> <input type="hidden" name="endyear" value=""> Using a specific startday,month,year,etc. <input type="hidden" name="matches" value="25"> <input type="hidden" name="startday" value="23"> <input type="hidden" name="startmonth" value="12"> <input type="hidden" name="startyear" value="2002"> <input type="hidden" name="endday" value="7"> <input type="hidden" name="endmonth" value="1"> <input type="hidden" name="endyear" value="2003"> The dates are obtained using a META tag entry in the HTML header. Anyone else seeing this? Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html