Remove the use of WDate
This commit is contained in:
parent
6e895d9503
commit
8142efb39d
@ -244,13 +244,15 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
$annonces = array();
|
||||
if (count($objAnnonces)>0) {
|
||||
foreach ( $objAnnonces as $item ) {
|
||||
$dateParution = new Zend_Date($item->DateParution, 'yyyy-MM-dd');
|
||||
$dateInsertion = new Zend_Date($item->dateInsertionSD, 'yyyy-MM-dd');
|
||||
$annonces[] = array(
|
||||
'id' => $item->id,
|
||||
'titre' => $item->titre,
|
||||
'communique' => $item->communique,
|
||||
'source' => $item->source,
|
||||
'DateParution' => WDate::dateT('Y-m-d','d/m/Y',$item->DateParution),
|
||||
'dateInsertionSD' => WDate::dateT('Y-m-d','d/m/Y',$item->dateInsertionSD),
|
||||
'DateParution' => $dateParution->toString('dd/MM/yyyy'),
|
||||
'dateInsertionSD' => $dateInsertion->toString('dd/MM/yyyy'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -262,13 +262,13 @@ if(count($this->infos->Organes->item)>0) {
|
||||
<?php
|
||||
if(isset($this->infos->Identite->dateCessationPaiement) && !empty($this->infos->Identite->dateCessationPaiement) && $this->infos->Identite->dateCessationPaiement!='0000-00-00')
|
||||
{
|
||||
$date = WDate::dateT('Y-m-d', 'd/m/Y',$this->infos->Identite->dateCessationPaiement);
|
||||
$date = new Zend_Date($this->infos->Identite->dateCessationPaiement, 'yyyy-MM-dd');
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" valign="top" class="StyleInfoLib">Cessation des paiements, le</td>
|
||||
<td width="300" class="StyleInfoData"><?=$date?></td>
|
||||
<td width="300" class="StyleInfoData"><?=$date->toString('dd/MM/yyyy')?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user