PDA

View Full Version : Problem date after indexing


noel
11-03-2005, 02:38 PM
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

Charter
11-05-2005, 02:23 PM
Assuming you are using PhpDig 1.8.8 RC1, in search_functions.php find:

'update_date' => mb_ereg_replace('^([0-9]{4})([0-9]{2})([0-9]{2}).*',PHPDIG_DATE_FORMAT,$content['last_modified']),

And replace with:

'update_date' => mb_ereg_replace('^([0-9]{4})[-]?([0-9]{2})[-]?([0-9]{2}).*',PHPDIG_DATE_FORMAT,$content['last_modified']),

noel
11-05-2005, 03:08 PM
Hi CHARTER,

That 's OK ,

Thank You.

Noël