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 |
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']), |
Hi CHARTER,
That 's OK , Thank You. Noël |
All times are GMT -8. The time now is 10:16 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.