Use Zend_Date

This commit is contained in:
Michael RICOIS 2013-10-24 15:32:00 +00:00
parent e75173772f
commit afe8216e5b

View File

@ -69,7 +69,9 @@ require_once 'common/dates.php';
function getRemoteFilename($infos)
{
$date = WDate::dateT('d/m/Y', 'Ymd', $infos['bilanCloture']);
Zend_Date::setOptions(array('extend_month' => true));
$dateCloture = new Zend_Date($infos['bilanCloture'], 'dd/MM/yyyy');
$date = $dateCloture->toString('yyyyMMdd');
$file = $infos['siren'].'_'.
$infos['format'].$date.'_'.
$infos['bilanDuree'].'_'.