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 "