Solve date conversion after the release in staging

This commit is contained in:
Michael RICOIS 2013-11-06 14:54:32 +00:00
parent 7f50f5b949
commit 22186ef465

View File

@ -1821,7 +1821,7 @@ class SaisieController extends Zend_Controller_Action
$date = new Zend_Date($identite->Bilan->Cloture, 'yyyyMMdd');
$dateCapital = $date->toString('dd/MM/yyyy');
}
$infos = array(
'siren' => $siren,
'actif' => 1,
@ -1896,8 +1896,8 @@ class SaisieController extends Zend_Controller_Action
if (!file_exists($path)) { mkdir($path); }
$date = new Zend_Date($params['fileDate'],'yyyyMMdd');
$name = 'INTERNE-'.$params['idNum'].'-'.$params['fileType'].'-'.$date->toString('dd/MM/yyyy');
$date = new Zend_Date($params['fileDate'],'dd/MM/yyyy');
$name = 'INTERNE-'.$params['idNum'].'-'.$params['fileType'].'-'.$date->toString('yyyyMMdd');
$n = $_FILES['fichier']['name'];
$s = $_FILES['fichier']['size'];
@ -1918,7 +1918,7 @@ class SaisieController extends Zend_Controller_Action
'idNum' => $params['idNum'],
'periDoc' => $params['periDoc'],
'docRef' => $name,
'dateDocRef' => $date,
'dateDocRef' => $date->toString('yyyyMMdd'),
);
$ws = new WsScores();