issue #0001335 : Vérifier la validité de la date pour affichage
This commit is contained in:
parent
da96a9e4f4
commit
9820bb9b4f
@ -36,17 +36,10 @@
|
||||
<td class="StyleInfoData" width="270"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" width="200"><?=$dir->Societe.' '.$dir->Nom.' '.$dir->Prenom?></td>
|
||||
<td class="StyleInfoData" width="200">
|
||||
<?php if ($dir->DateFct != '') { ?>
|
||||
<?=$this->translate("Modification le")?>
|
||||
<?php
|
||||
if (strpos($dir->DateFct, '/') != false) {
|
||||
echo $dir->DateFct.' ';
|
||||
} else {
|
||||
$date = new Zend_Date($dir->DateFct,'yyyy-MM-dd');
|
||||
echo $date->toString('dd/MM/yyyy');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php $date = new Zend_Date($dir->DateFct,'yyyy-MM-dd'); ?>
|
||||
<?php if ( Zend_Date::isDate($date) ) { ?>
|
||||
<?=$this->translate("Modification le") . ' ' . $date->toString('dd/MM/yyyy');?>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
Loading…
Reference in New Issue
Block a user