Fatal error: Class 'DateTime' not found in
/mnt/168/sda/3/3/studio.quatorze/landp_public/landp_pdo_item_test.php on
line 53
ligne 53 étant dans cette fonction :
function isodate2fr_FR($isodatestring){
date_default_timezone_set('Europe/Paris');
$date_format='%A %d %B %Y à %Hh %M:%S';
$atime=new DateTime($isodatestring);// Ligne 53
setlocale(LC_TIME,'fr_FR.utf-8');
return strftime($date_format, $atime->format('U'));
}
ça peut se remplacer ? tout en restant compatible avec le php sur mac OS
X Lion :
PHP Version 5.3.6
celuis sur free étant :
PHP Version 5.1.3RC4-dev
--
« L'amour, c'est offrir à quelqu'un qui n'en veut pas
quelque chose que l'on n'a pas. »
(Jacques Lacan)