Remove the use of WDate
This commit is contained in:
parent
0e60443685
commit
b14f5d76a5
@ -230,7 +230,8 @@ class Annonces
|
||||
*/
|
||||
protected function dateAnnonce($date)
|
||||
{
|
||||
return WDate::dateT('Y-m-d', 'd/m/Y', $date);
|
||||
$dateS = new Zend_Date($date, 'yyyy-MM-dd');
|
||||
return $dateS->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
protected function logoTitleAnnonce($ann)
|
||||
@ -317,7 +318,8 @@ class Annonces
|
||||
$numEven = $even->CodeEven*1;
|
||||
if ($numEven>3000 && $numEven<3999) {
|
||||
if (isset($ann->dateEffet)){
|
||||
$lib.= ' (clôture au '.WDate::dateT('Y-m-d','d/m/Y',$ann->dateEffet).')';
|
||||
$date = new Zend_Date($ann->dateEffet, 'yyyy-MM-dd');
|
||||
$lib.= ' (clôture au '.$date->toString('dd/MM/yyyy').')';
|
||||
}
|
||||
}
|
||||
$user = new Scores_Utilisateur();
|
||||
@ -339,7 +341,8 @@ class Annonces
|
||||
foreach ($this->annonces as $i => $ann)
|
||||
{
|
||||
//Génération id pour tri
|
||||
$id = WDate::dateT('Y-m-d','Ymd',$ann->DateParution).':'.$ann->id;
|
||||
$date = new Zend_Date($ann->DateParution,'yyyy-MM-dd');
|
||||
$id = $date->toString('yyyyMMdd').':'.$ann->id;
|
||||
if ($this->isBodacc($ann->BodaccCode)){
|
||||
$this->annoncesBodacc[$id] = $ann;
|
||||
} elseif ($this->isBalo($ann->BodaccCode)) {
|
||||
@ -356,7 +359,8 @@ class Annonces
|
||||
|
||||
public function getAnnee($ann)
|
||||
{
|
||||
return WDate::dateT('Y-m-d','Y',$ann->DateParution);
|
||||
$date = new Zend_Date($ann->DateParution,'yyyy-MM-dd');
|
||||
return $date->toString('yyyy');
|
||||
}
|
||||
|
||||
public function getNum($ann)
|
||||
|
@ -121,8 +121,14 @@ class IdentiteProcol
|
||||
$output.= html_entity_decode($annonce->evenements->item[0]->LibEven);
|
||||
$output.= '</a>';
|
||||
|
||||
if(!empty($annonce->dateJugement) && substr($annonce->dateJugement,0,4)!='0000') $output.= ', le '.WDate::dateT('Y-m-d','d/m/Y',$annonce->dateJugement);
|
||||
elseif(!empty($annonce->dateEffet) && substr($annonce->dateEffet,0,4)!='0000') $output.= ', le '.WDate::dateT('Y-m-d','d/m/Y',$annonce->dateEffet);
|
||||
if(!empty($annonce->dateJugement) && substr($annonce->dateJugement,0,4)!='0000') {
|
||||
$date = new Zend_Date($annonce->dateJugement, 'yyyy-MM-dd');
|
||||
$output.= ', le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
elseif(!empty($annonce->dateEffet) && substr($annonce->dateEffet,0,4)!='0000') {
|
||||
$date = new Zend_Date($annonce->dateEffet, 'yyyy-MM-dd');
|
||||
$output.= ', le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
$output.= ', publié au ';
|
||||
$tabSource=explode('-', $annonce->BodaccCode);
|
||||
@ -137,7 +143,10 @@ class IdentiteProcol
|
||||
}else{
|
||||
$output.='JAL';
|
||||
}
|
||||
if(!empty($annonce->DateParution)) $output.= ' le '.WDate::dateT('Y-m-d','d/m/Y',$annonce->DateParution);
|
||||
if(!empty($annonce->DateParution)) {
|
||||
$date = new Zend_Date($annonce->DateParution,'yyyy-MM-dd');
|
||||
$output.= ' le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
$output.= '</p>';
|
||||
}
|
||||
}
|
||||
@ -165,11 +174,13 @@ class IdentiteProcol
|
||||
$data = '';
|
||||
if(!empty($this->procol->StatutsConst) && $this->procol->StatutsConst!='0000-00-00')
|
||||
{
|
||||
$data.= 'Constitués le '.WDate::dateT('Y-m-d', 'd/m/Y', $this->procol->StatutsConst);
|
||||
$date = new Zend_Date($this->procol->StatutsConst, 'yyyy-MM-dd');
|
||||
$data.= 'Constitués le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
if(!empty($this->procol->StatutsConstDepot) && $this->procol->StatutsConstDepot!='0000-00-00')
|
||||
{
|
||||
$data.= ' en dépôt du '.WDate::dateT('Y-m-d', 'd/m/Y', $this->procol->StatutsConstDepot);
|
||||
$date = new Zend_Date($this->procol->StatutsConstDepot, 'yyyy-MM-dd');
|
||||
$data.= ' en dépôt du '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
if(empty($data)) return false;
|
||||
return $data;
|
||||
@ -184,12 +195,14 @@ class IdentiteProcol
|
||||
$data = '';
|
||||
if(!empty($this->procol->StatutsModif) && $this->procol->StatutsModif!='0000-00-00')
|
||||
{
|
||||
$data.= 'Modifiés le '.WDate::dateT('Y-m-d', 'd/m/Y', $this->procol->StatutsModif);
|
||||
$date = new Zend_Date($this->procol->StatutsModif, 'yyyy-MM-dd');
|
||||
$data.= 'Modifiés le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
if(!empty($this->procol->StatutsModifDepot) && $this->procol->StatutsModifDepot!='0000-00-00')
|
||||
{
|
||||
$data.= ' en dépôt du '.WDate::dateT('Y-m-d', 'd/m/Y', $this->procol->StatutsModifDepot);
|
||||
$date = new Zend_Date($this->procol->StatutsModifDepot, 'yyyy-MM-dd');
|
||||
$data.= ' en dépôt du '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
if(empty($data)) return false;
|
||||
return $data;
|
||||
@ -203,8 +216,9 @@ class IdentiteProcol
|
||||
{
|
||||
if (empty($this->procol->CessionOffreDate)) return false;
|
||||
|
||||
return 'Offres de reprises possibles jusqu\'au '.
|
||||
WDate::DateT('Y-m-d', 'd/m/Y', $this->procol->CessionOffreDate);
|
||||
$date = new Zend_Date($this->procol->CessionOffreDate, 'yyyy-MM-dd');
|
||||
|
||||
return 'Offres de reprises possibles jusqu\'au '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
public function getCessionInvenDateLabel()
|
||||
@ -215,8 +229,9 @@ class IdentiteProcol
|
||||
{
|
||||
if (empty($this->procol->CessionInvenDate)) return false;
|
||||
|
||||
return 'Inventaire déposé au greffe le '.
|
||||
WDate::DateT('Y-m-d', 'd/m/Y', $this->procol->CessionInvenDate);
|
||||
$date = new Zend_Date($this->procol->CessionInvenDate, 'yyyy-MM-dd');
|
||||
|
||||
return 'Inventaire déposé au greffe le '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
public function getCessionDescLabel()
|
||||
|
Loading…
Reference in New Issue
Block a user