From c06edfdde05cf3d16fe3bcbe40bc75c624aa8f37 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 15:57:29 +0000 Subject: [PATCH] Update file news.php --- html/news.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ""; + echo ""; echo "
" . $resultat[0]['auteur'] . "
"; echo "
" . $classifications[$resultat[0]['classification']] . "
"; }