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;

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...

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.

                        Bill Knox
                        Senior Operating Systems Programmer/Analyst
                        The MITRE Corporation

On Wed, 20 Mar 2002, Gilles Detillieux wrote:

> Date: Wed, 20 Mar 2002 09:55:32 -0600 (CST)
> From: Gilles Detillieux <[EMAIL PROTECTED]>
> To: David_Bourne <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htdig] Re: Search on Modification Date with SSI
>
> According to David_Bourne:
[portions of message deleted]
>
> > I notice that the returned date on the results page
> > is shown as 12/31/89. Probably a time zone issue. I tried:
> >
> >     <META Name="Date" Content="1990 01 01T12:00:00-6:00">
> >
> > without effect.
> >
> > Guess I'll play with the SSI side for a bit using spaces.
>
> Yes, the problem is the meta date field is parsed in the UTC time zone,
> and midnight UTC is assumed if no time is given, but htsearch displays
> dates in the web server's local time zone.  For zones west of the prime
> meridian, dates will be one day less, because you're a few hours before
> midnight in your time zone.
>
> The quick fix for now is to use something like:
>
>       <meta name="date" content="1990-01-01 12:00:00">
>
> which will work as long as you're no more than 12 hours west of UTC (and
> no more than 11:30 east of UTC).  Eventually, I think the fix will be to
> parse the meta date field in the local time zone on the indexing machine,
> which hopefully will be in the same time zone as the machine on which
> htsearch is run.  Usually it's the same machine anyway, but not always.
> In the case where it's not, you can always change the TZ environment
> variable for the htdig or htsearch process.
>
> --
> 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
>





_______________________________________________
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