On Mon, 25 Nov 2002, Adam Powell wrote:
} Is it still true that use_doc_date expects dates in ISO-8601 format
} (YYYY-MM-DD)?
Yes, as I just recently found out. Though according to RFC 1945, section
10.10 [for HTTP/1.0] and RFC 2068, section 14.29 [for HTTP/1.1], RFC 1123
*is* the standard date format for meta date tags, not ISO 8601.
} If possible, I'd like to use meta tags with this format
} 20 NOVEMBER 2002
It would need to be altered in htdig's source code. Depending on your site
structure, it is probably easier to edit your w3 site to conform to
htdig's ISO8601 datestamp. If your site uses PHP, you can use date() or
gmdate() to create a proper datestamp. I use a datetimestamp in a mysql
table and actually pull that data to feed to the META headers.
Something like this would work:
$dt = $what_row["UNIX_TIMESTAMP(datetime)"]
$meta_date = gmdate('Y-m-d',"$dt");
[the mysql col 'datetime' is a datetime field].
Then, in the PHP pages, you would insert:
<META name="date" content="<?php echo "$meta_date"; ?>">
You can also use the PHP header() function if your site is structured
well.
HTH,
/vjl/
--
Vince LaMonica UC Irvine, School of Social Ecology
W3 Developer <*> 116 Social Ecology I, Irvine, CA 92697
[EMAIL PROTECTED] http://www.seweb.uci.edu/techsupport
Your mouse has moved. Windows NT must be restarted for the
change to take effect. Reboot now? [ OK ]
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
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