diff --git a/html/news.php b/html/news.php index 89eff281..e6acc813 100644 --- a/html/news.php +++ b/html/news.php @@ -58,10 +58,10 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $resultat = $req->fetchAll(PDO::FETCH_ASSOC);; if ($resultat) { - $date = date($resultat[0]['date']); + $date = strtotime($resultat[0]['date']); echo "
" . $resultat[0]['ID'] . "
"; echo "
" . $resultat[0]['titre'] . "
"; - echo "
" . $date->format('d/m/Y') . "
"; + echo "
" . date('d/m/Y', $date) . "
"; echo "
" . $resultat[0]['auteur'] . "
"; echo "
" . $classifications[$resultat[0]['classification']] . "
"; }