From f5c3535179b82c1cc600f9bf68b4891a08232e54 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 31 Oct 2013 15:21:10 +0000 Subject: [PATCH] Remove depencies of library common/dates : dateT --- application/controllers/SurveillanceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/SurveillanceController.php b/application/controllers/SurveillanceController.php index 3e2458c6c..fb8d704c1 100644 --- a/application/controllers/SurveillanceController.php +++ b/application/controllers/SurveillanceController.php @@ -665,7 +665,7 @@ class SurveillanceController extends Zend_Controller_Action $listeFichier = array(); foreach($tabFichier as $fichier){ $tabTmp = explode('_', $fichier); - $date = Wdate::dateT('Ymd','d/m/Y', substr($tabTmp[2],0,8)); + $date = new Zend_Date(substr($tabTmp[2],0,8),'yyyyMMdd'); $localfile = $path.'/'.$fichier; $dejaLu = false; if (!file_exists($localfile)) { @@ -673,7 +673,7 @@ class SurveillanceController extends Zend_Controller_Action } $result = array( 'fichier' => $fichier, - 'date' => $date, + 'date' => $date->toString('dd/MM/yyyy'), 'dejaLu' => $dejaLu, ); $listeFichier[] = $result;