PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Bug Tracker (http://www.phpdig.net/forum/forumdisplay.php?f=27)
-   -   Problem date after indexing (http://www.phpdig.net/forum/showthread.php?t=2227)

noel 11-03-2005 01:38 PM

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

Charter 11-05-2005 01:23 PM

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']),
And replace with:
Code:

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

noel 11-05-2005 02:08 PM

Hi CHARTER,

That 's OK ,

Thank You.

Noël


All times are GMT -8. The time now is 09:50 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.