aca adjunto la funcion que al parecer presenta error
http://70.38.31.52/~poneloc/clasificados/ Código PHP:
function date_diff($tfirst, $tsecond)
{
$totalsec=$tsecond-$tfirst;
$days=round(($totalsec/86400));
$totalsec=$totalsec % 86400;
$hours=round(($totalsec/3600));
$totalsec=$totalsec % 3600;
$minutes=round(($totalsec/60));
$seconds=$totalsec % 60;
$ret["days"]=$days;
$ret["hours"]=$hours;
$ret["minutes"]=$minutes;
$ret["secods"]=$seconds;
return $ret;
}