Use Zend_Date

This commit is contained in:
Michael RICOIS 2013-10-24 15:35:41 +00:00
parent afe8216e5b
commit abd55a972f

View File

@ -224,10 +224,11 @@ class SurveillanceController extends Zend_Controller_Action
$tooltipTexte = '';
$ref = $surv->ref;
$tooltipTexte.= "Ref : ".$ref;
$tooltipTexte.= "<br/>Date d'ajout :".WDate::dateT('Y-m-d', 'd/m/Y', $surv->dateAjout);
$dateAjout = new Zend_Date($surv->dateAjout, 'yyyy-MM-dd');
$tooltipTexte.= "<br/>Date d'ajout :".$dateAjout->toString('dd/MM/yyyy');
if ($surv->dateDerEnvoi!='0000-00-00 00:00:00') {
$tooltipTexte.= "<br/>Date de dernier envoi : ".
WDate::dateT('Y-m-d', 'd/m/Y', substr($surv->dateDerEnvoi,0,10));
$date = new Zend_Date(substr($surv->dateDerEnvoi,0,10), 'yyyy-MM-dd');
$tooltipTexte.= "<br/>Date de dernier envoi : ".$date->toString('dd/MM/yyyy');
}
$listSurv[] = array(
'tooltipTexte' => $tooltipTexte,