From 6c555c7da01694476fb5f1913f5f58d659d70874 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 17 Oct 2013 15:00:34 +0000 Subject: [PATCH] Correction afficahge date --- application/controllers/ReportController.php | 3 ++- application/views/scripts/report/deliver.phtml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/controllers/ReportController.php b/application/controllers/ReportController.php index 2ea726a..bfa565e 100644 --- a/application/controllers/ReportController.php +++ b/application/controllers/ReportController.php @@ -129,7 +129,8 @@ class ReportController extends Zend_Controller_Action $infos = new stdClass(); $infos->NumCommande = $row->cmdId; - $infos->DateCommande = $row->dateInsert; + $date = new Zend_Date($row->dateInsert); + $infos->DateCommande = $date->toString('dd/MM/yyyy HH:mm:ss'); $infos->RaisonSociale = $row->rs; $infos->NomPrenom = $row->nom . ' ' . $row->prenom; $infos->Adresse = $row->adresse; diff --git a/application/views/scripts/report/deliver.phtml b/application/views/scripts/report/deliver.phtml index 1a7f834..024480b 100644 --- a/application/views/scripts/report/deliver.phtml +++ b/application/views/scripts/report/deliver.phtml @@ -28,7 +28,8 @@
Suivi commande
- N° de commande
+ N° de commande : Infos->NumCommande?>
+ En date du : Infos->DateCommande?>