Hello Gilles

>Line 1127 was just to skip leading spaces before the year.  You're not
>likely to have leading hyphens, but the change won't hurt anything.
>Line 1142 was the one to change.  It was just skipping over spaces after
>the year, but not hyphens.

I have removed the change at line 1127

>  > I then did a ./configure, make and sudo make install (the sudo was
>>  needed to set permissions properly)
>>
>>  With one or both lines 'patched' I still can't use 1990/01/01 but
>>  1990 01 01 works.

Oops. I got the '-', '/', and ' ' confused. With the patch '-' and ' 
' work as expected. Thanks.

>The patch was to get the code to correctly handle an ISO-8601 format
>date string, with hyphens, i.e. 1990-01-01.  If you want it to allow
>slashes too, you need to change lines 1142 and 1153 to:

Both 1142 and 1153? I guess 1153 was OK before.

>     while (*s == '-' || *s == '/' || isspace(*s))
>
>which means while the current character is a hyphen, a slash, or a
>white space character of some sort, keep skipping over.
>
>  > 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.
>>
>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">

This works. Thanks.

My SSI bit is:

        <TITLE>PHAR 7632/7633 Syllabus</TITLE><!--#config 
timefmt="%Y-%m-%d" -->
        <META Name="Date" Content="<!--#flastmod virtual = "s00.html" 
--> 12:00:00">

which seems to work OK. Thanks for the help. Again, great utility.

David
-- 

David Bourne, Ph.D., OU HSC College of Pharmacy, Oklahoma City, OK 73117
Voice:  (405) 271-6481 x 47213  FAX: (405) 271-7505
Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Virtual Library: Pharmacy Page                  http://www.pharmacy.org/
Pharmacokinetic Resources Page               http://www.boomer.org/pkin/
LISTSERVs                             [EMAIL PROTECTED] (PK/PD Issues),
                                  [EMAIL PROTECTED] (Pharmacy Teaching),
                      [EMAIL PROTECTED]  (Pharmaceutics/Analysis Issues)

_______________________________________________
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