File htdig-gmtime-lastday.patch of Package htdig
--- htsearch/Display.cc
+++ htsearch/Display.cc
@@ -1256,7 +1256,7 @@
startdate = *lt;
enddate = *lt;
- time_t eternity = ~(1<<(sizeof(time_t)*8-1)); // will be the largest value holdable by a time_t
+ time_t eternity = 0x7fffffff; // use INT32_MAX to define last day
tm endoftime; // the time_t eternity will be converted into a tm, held by this variable
time_t timet_startdate;