As I said, is nothing I can do about it. The script is working fine.
Check your database, because the script pulls what is in there.
If the database tells to the script that's the date, the script will display it.
The forums show the correct date because you are grabbing the date from the last post not the original date they were posted.
Since there is no importer who does a good job, the dates are messed, due to UBB format.
A workaround to your database problem would be this:
FILE: forumdisplay.txt
FIND:
Code:
$threads = $DB_site->query("
SELECT threadid,title,dateline,replycount
REPLACE WITH:
Code:
$threads = $DB_site->query("
SELECT threadid,title,lastpost,dateline,replycount
FIND:
Code:
$thread['date'] = vbdate( $dateformat , $thread['dateline'] );
$thread['time'] = vbdate( $timeformat , $thread['dateline'] );
REPLACE WITH:
Code:
$thread['date'] = vbdate( $dateformat , $thread['lastpost'] );
$thread['time'] = vbdate( $timeformat , $thread['lastpost'] );
That doesn't mean your database is not screwed anymore.
You should REALLY have it checked by a professional, or at least delete all old threads that belong to UBB.