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) {