diff --git a/application/controllers/IdentiteController.php b/application/controllers/IdentiteController.php index 4973c91ea..8392b3105 100644 --- a/application/controllers/IdentiteController.php +++ b/application/controllers/IdentiteController.php @@ -16,7 +16,6 @@ class IdentiteController extends Zend_Controller_Action require_once 'Scores/WsScores.php'; require_once 'Scores/SessionEntreprise.php'; require_once 'Scores/IdentiteEntreprise.php'; - require_once 'common/dates.php'; } public function preDispatch() @@ -86,21 +85,22 @@ class IdentiteController extends Zend_Controller_Action ); $datemajTexte = $dateDerMaj = ''; $datemajTexte.= ''; - $wdate = new WDate(); foreach ( $tabDate as $dateId => $dateLib ) { if ( isset($infos->{$dateId}) && !empty($infos->{$dateId}) && $infos->{$dateId}!='0000-00-00') { if ( $dateId == 'DateMajID') { - $dateDerMaj = ' le '.$wdate->dateT('Y-m-d', 'd/m/Y', $infos->DateMajID); + $date = new Zend_Date($infos->DateMajID, 'yyyy-MM-dd'); + $dateDerMaj = ' le '.$date->toString('dd/MM/yyyy'); } if ( $dateId == 'DateMajID' && !$user->checkModeEdition()) { } else { + $date = new Zend_Date($infos->{$dateId}, 'yyyy-MM-dd'); $datemajTexte.= ''; $datemajTexte.= ''; - $datemajTexte.= ''; + $datemajTexte.= ''; $datemajTexte.= ''; }
'.$dateLib.''.$wdate->dateT('Y-m-d', 'd/m/Y', $infos->{$dateId}).''.$date->toString('dd/MM/yyyy').'