Task #87787 has been updated. 

Project: ht://Dig
Subproject: Testing 3.2
Summary: Date related
Complete: 60%
Status: Open
Authority  : nealr
Assigned to: nobody

Description: Use the documenation to test each one of these config verbs

# dates

use_doc_date

iso_8601

date_format

date_factor(2)

check_unique_date(2)



Follow-Ups:

-------------------------------------------------------
Date: 2004-03-11 11:32
By: angusgb

Comment:
use_doc_date and ISO_8601:



use_doc_date works properly, as it only need to get the DATE part 
(http://dublincore.org/documents/dces/); however, when the modification time is shown 
through htsearch, if the format specifies a time part (hours, minutes, seconds and - 
worse - a timezone!) the midnight of that day is taken and wrong information is shown.



When having a deeper look at this, we came across the W3C standard for date time 
specifications (http://www.w3.org/TR/1998/NOTE-datetime-19980827) 

I discovered (too late, I know!) that date times should be specified using the 
complete ISO 8601 format, which is different from the ones that the HtDateTime 
actually handles. 



In particular, here is their format:

YYYY-MM-DDThh:mm:ssTZD

for instance: 1997-07-16T19:20:30:+01:00



Should we implement this or not?



Also, strptime can't handle timezones, which makes modification time not to work 
properly.



However, use_doc_date works fine (it overrides the server date) although - I guess - 
we could write in the documentation that if this is enabled times in the htsearch 
output should be disabled.



-------------------------------------------------------
Date: 2004-03-11 11:14
By: angusgb

Comment:
date_factor: with the current weight formula, documents made earlier than 2000 get a 
negative score. In some cases documents disappear from the results, which is something 
- I guess - we don't want to happen. I suggest a revision of this formula, currently:



date_score = date_factor * ((document_date * 10 / now) - 9)



However, the factor works.

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=87787&group_id=4593&group_project_id=32485


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to