From 9289853978be982871c85f373379f3020b73c82f Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 15:52:32 +0000 Subject: [PATCH] Update 2 files - /html/news.php - /html/editpage.php --- html/editpage.php | 2 +- html/news.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/editpage.php b/html/editpage.php index 9634e45d..8bbc8b42 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -124,7 +124,7 @@ if(isset($fichier)) { $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); - $date = new Datetime($row['date']); + $date = new date($row['date']); if ($resultat) { foreach($resultat as $row) { diff --git a/html/news.php b/html/news.php index cea50950..eb71f845 100644 --- a/html/news.php +++ b/html/news.php @@ -58,7 +58,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $resultat = $req->fetchAll(PDO::FETCH_ASSOC);; if ($resultat) { - $date = new Datetime($resultat[0]['date']); + $date = date($resultat[0]['date']); echo "
" . $resultat[0]['ID'] . "
"; echo "
" . $resultat[0]['titre'] . "
"; echo ""; @@ -75,7 +75,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); - $date = new Datetime($row['date']); + $date = new date($row['date']); if ($resultat) { foreach($resultat as $row) {