Use Zend_Date instead of WDate
This commit is contained in:
parent
9479311035
commit
2a4402a3fd
@ -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.= '<table>';
|
||||
$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.= '<tr>';
|
||||
$datemajTexte.= '<td>'.$dateLib.'</td>';
|
||||
$datemajTexte.= '<td>'.$wdate->dateT('Y-m-d', 'd/m/Y', $infos->{$dateId}).'</td>';
|
||||
$datemajTexte.= '<td>'.$date->toString('dd/MM/yyyy').'</td>';
|
||||
$datemajTexte.= '</tr>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user