condition('status', '1', '='); $query->addExpression('MAX(changed)', 'changed'); $result = $query->execute()->fetchAssoc(); if ($result) { if($site_lang == "fr"){ setlocale(LC_ALL, $site_lang . '_' . strtoupper($site_lang) . '.UTF-8'); $output = strftime('%d %B, %Y',$result['changed']); }else{ $output = strftime('%d %B, %Y',$result['changed']); } } echo $output; echo '
===
'; $site_lang = "fr"; setlocale(LC_ALL, $site_lang . '_' . strtoupper($site_lang) . '.UTF-8'); echo $output = strftime('%d %B, %Y',$result['changed']); ?>