Use Zend_Date instead of WDate
This commit is contained in:
parent
58d4a148bf
commit
b878815363
@ -317,8 +317,9 @@ class PiecesController extends Zend_Controller_Action
|
||||
if ($rncsDepots!==false) {
|
||||
if (count($rncsDepots->item)>0) {
|
||||
foreach($rncsDepots->item as $d) {
|
||||
$date = WDate::dateT('Y-m-d', 'd/m/Y', $d->DateDepot);
|
||||
if ($date==$depot['date_depot']){
|
||||
$date = new Zend_Date($d->DateDepot, 'yyyy-MM-dd');
|
||||
$dateDepot = $date->toString('dd/MM/yyyy');
|
||||
if ($dateDepot==$depot['date_depot']){
|
||||
$data.= '<br/> - '.$d->LibDepot;
|
||||
}
|
||||
}
|
||||
@ -751,7 +752,8 @@ class PiecesController extends Zend_Controller_Action
|
||||
$dejaCommande = true;
|
||||
if ($rows[0]->login==$user->getLogin())
|
||||
{
|
||||
$dateCommande = WDate::dateT('Y-m-d','d/m/Y',$rows[0]->dateCommande);
|
||||
$date = new Zend_Date($rows[0]->dateCommande, 'yyyy-MM-dd');
|
||||
$dateCommande = $date->toString('dd/MM/yyyy');
|
||||
$idCommande = $rows[0]['idCommande'];
|
||||
if(empty($rows[0]->emailCommande)) $noemail = true;
|
||||
$sameLogin = true;
|
||||
@ -804,7 +806,8 @@ class PiecesController extends Zend_Controller_Action
|
||||
$dejaCommande = true;
|
||||
if ($rows[0]->login==$user->getLogin())
|
||||
{
|
||||
$dateCommande = WDate::dateT('Y-m-d','d/m/Y',$rows[0]->dateCommande);
|
||||
$date = new Zend_Date($rows[0]->dateCommande, 'yyyy-MM-dd');
|
||||
$dateCommande = $date->toString('dd/MM/yyyy');
|
||||
$idCommande = $rows[0]->idCommande;
|
||||
if(empty($rows[0]->emailCommande)) $noemail = true;
|
||||
$sameLogin = true;
|
||||
@ -951,7 +954,8 @@ class PiecesController extends Zend_Controller_Action
|
||||
$dejaCommande = true;
|
||||
if ($rows[0]['login']==$user->getLogin())
|
||||
{
|
||||
$dateCommande = WDate::dateT('Y-m-d','d/m/Y',$rows[0]['dateCommande']);
|
||||
$date = new Zend_Date($rows[0]['dateCommande'], 'yyyy-MM-dd');
|
||||
$dateCommande = $date->toString('dd/MM/yyyy');
|
||||
$idCommande = $rows[0]->idCommande;
|
||||
if(empty($rows[0]->emailCommande)) $noemail = true;
|
||||
$sameLogin = true;
|
||||
@ -997,7 +1001,8 @@ class PiecesController extends Zend_Controller_Action
|
||||
$dejaCommande = true;
|
||||
if ($rows[0]->login==$user->getLogin())
|
||||
{
|
||||
$dateCommande = WDate::dateT('Y-m-d','d/m/Y',$rows[0]->dateCommande);
|
||||
$date = new Zend_Date($rows[0]->dateCommande, 'yyyy-MM-dd');
|
||||
$dateCommande = $date->toString('dd/MM/yyyy');
|
||||
$idCommande = $rows[0]->idCommande;
|
||||
if(empty($rows[0]->emailCommande)) $noemail = true;
|
||||
$sameLogin = true;
|
||||
|
Loading…
Reference in New Issue
Block a user