According to William R. Knox:
> Another fix, dependent on the same time zone considerations, is to make
> htdig assume something besides midnight when it performs the indexing. So
> you can change line 1168 of Retriever.cc from
> 
>     hour = 0;
> 
> to
> 
>     hour = 12;

This will break things if there is a time specified after the date in the
meta date tag, though.  A safer fix would be to do the following at that
line:

    hour = 0;
    if (!isdigit(*s))
        hour = 12;

> Again, this is, as was pointed out on the htdig-dev list a few months
> back, bogus in that it will break if you are 12 or more hours off of UTC,
> but you likely aren't, so...

Yes, this is indeed just a kludge on top of a kludge.  The proper way would
be to parse the date in the local time zone instead of UTC.

> The obvious advantage is not having to go in and change all your web
> pages, which will help in compatibility with whatever solution is the one
> used. Good luck.

Yes, that is a good point.  David was going to automatically generate the
meta date tags using SSI anyway, so it wouldn't involve changing a whole
bunch of pages manually, but the compatibility issue is important.  He
wouldn't want his SSI scripting to break when the handling of meta date
tags in htdig is fixed.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
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

Reply via email to