|
11-03-2005, 01:38 PM | #1 |
Orange Mole
Join Date: Aug 2005
Posts: 44
|
Problem date after indexing
Hi CHARTER,
I put in the config file the date format like this , but the spider still uses english format: define('PHPDIG_DATE_FORMAT','\3-\2-\1'); For all the site that I yet indexed what can I do to have the date with the format 03/11/2005. Because I wouldn't re-indexe all again If I had to send a line command to change format in Mysql what is it ? Thank You Noël |
11-05-2005, 01:23 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Assuming you are using PhpDig 1.8.8 RC1, in search_functions.php find:
Code:
'update_date' => mb_ereg_replace('^([0-9]{4})([0-9]{2})([0-9]{2}).*',PHPDIG_DATE_FORMAT,$content['last_modified']), Code:
'update_date' => mb_ereg_replace('^([0-9]{4})[-]?([0-9]{2})[-]?([0-9]{2}).*',PHPDIG_DATE_FORMAT,$content['last_modified']),
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
11-05-2005, 02:08 PM | #3 |
Orange Mole
Join Date: Aug 2005
Posts: 44
|
Hi CHARTER,
That 's OK , Thank You. Noël |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Indexing problem... | afrim_05 | Troubleshooting | 3 | 11-24-2005 03:51 AM |
How to sort results by date rather than relevance ? | phil851 | Mod Requests | 0 | 06-17-2005 05:10 AM |
Search by date | wessam | Mod Requests | 3 | 07-18-2004 09:18 AM |
Format modified date for search results | jerrywin5 | How-to Forum | 1 | 03-23-2004 01:45 AM |
Adding date (of spidering) to search results | lighthouse | How-to Forum | 1 | 03-22-2004 09:50 PM |