diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 8044ecfcccf..60a0524fd11 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -678,7 +678,7 @@ if ($id > 0) print ""; print ''.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.''."\n"; //print ''.dol_print_date($db->jdate($objp->startdate)).''."\n"; - print ''.ConvertSecondToTime($objp->duration).''."\n"; + print ''.convertSecondToTime($objp->duration).''."\n"; print ''.$fichinter_static->getLibStatut(3).''."\n"; print ''; $var=!$var; diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index 5ffdfaaab7b..8cf299ec133 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -201,9 +201,8 @@ else print '   '; //var_dump($birthdatearray); - //print ($now-$birthdate).' - '.ConvertSecondToTime($now-$birthdate,'year').'
'; - $ageyear=ConvertSecondToTime($now-$object->birthday,'year')-1970; - $agemonth=ConvertSecondToTime($now-$object->birthday,'month')-1; + $ageyear=convertSecondToTime($now-$object->birthday,'year')-1970; + $agemonth=convertSecondToTime($now-$object->birthday,'month')-1; if ($ageyear >= 2) print '('.$ageyear.' '.$langs->trans("DurationYears").')'; else if ($agemonth >= 2) print '('.$agemonth.' '.$langs->trans("DurationMonths").')'; else print '('.$agemonth.' '.$langs->trans("DurationMonth").')'; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f4ec9c1e919..bf81c7ceaad 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3437,8 +3437,8 @@ class Form { require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"); - $hourSelected = ConvertSecondToTime($iSecond,'hour'); - $minSelected = ConvertSecondToTime($iSecond,'min'); + $hourSelected = convertSecondToTime($iSecond,'hour'); + $minSelected = convertSecondToTime($iSecond,'min'); } print '