correction date pour l'affichage des comptages

This commit is contained in:
Damien LASSERRE 2012-04-05 07:39:15 +00:00
parent 26fdd036c4
commit cbe5f56cc4

View File

@ -27,7 +27,7 @@ Class Object_Dashboard
);
//Recherche des comptages
$sql = $comptagesM->select()
->from($comptagesM, array('resultat', 'uniteInsee', "DATE_FORMAT(dateAjout, '%d/%m/%Y %H:%i:%s') as dateAjout"))
->from($comptagesM, array('resultat', 'uniteInsee', "DATE_FORMAT(dateAjout, '%Y/%m/%d %H:%i:%s') as dateAjout"))
->where('idDefinition = ?', $item['id'])
->order('dateAjout DESC')->limit(1);
$comptage = $comptagesM->fetchAll($sql)->toArray();