From 62203777894ca8b7b11fe1d927d0a5b88862f0b7 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 15:53:20 +0000 Subject: [PATCH] Update 2 files - /html/editpage.php - /html/news.php --- html/editpage.php | 2 +- html/news.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/editpage.php b/html/editpage.php index 8bbc8b42..9634e45d 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 date($row['date']); + $date = new Datetime($row['date']); if ($resultat) { foreach($resultat as $row) { diff --git a/html/news.php b/html/news.php index eb71f845..88297afd 100644 --- a/html/news.php +++ b/html/news.php @@ -75,7 +75,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); - $date = new date($row['date']); + $date = new Datetime($row['date']); if ($resultat) { foreach($resultat as $row) {