PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 11-03-2005, 02:38 PM   #1
noel
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
noel is offline   Reply With Quote
Old 11-05-2005, 02:23 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
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']),
And replace with:
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.
Charter is offline   Reply With Quote
Old 11-05-2005, 03:08 PM   #3
noel
Orange Mole
 
Join Date: Aug 2005
Posts: 44
Hi CHARTER,

That 's OK ,

Thank You.

Noël
noel is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing problem... afrim_05 Troubleshooting 3 11-24-2005 04:51 AM
How to sort results by date rather than relevance ? phil851 Mod Requests 0 06-17-2005 06:10 AM
Search by date wessam Mod Requests 3 07-18-2004 10:18 AM
Format modified date for search results jerrywin5 How-to Forum 1 03-23-2004 02:45 AM
Adding date (of spidering) to search results lighthouse How-to Forum 1 03-22-2004 10:50 PM


All times are GMT -8. The time now is 11:35 PM.


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