From 4f71b03fb76db75f6a946f76cbd1b54d9df181d2 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 17:40:08 +0000 Subject: [PATCH] Update 2 files - /html/upload.php - /html/upload-file.php --- html/upload-file.php | 2 +- html/upload.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/upload-file.php b/html/upload-file.php index e0c0218e..1439dc11 100644 --- a/html/upload-file.php +++ b/html/upload-file.php @@ -23,7 +23,7 @@ if(isset($_POST['titre']) && isset($_FILES['file'])) { if (isset($_POST['date']) && empty($_POST['date']) == false) { $upload->bindParam(':date', htmlspecialchars($_POST['date'])); } else { - $upload->bindParam(':date', date()); + $upload->bindParam(':date', date("Y-m-d")); } if($upload->execute()) { $status = "Uploaded"; diff --git a/html/upload.php b/html/upload.php index 0c6234a5..f3e943f9 100644 --- a/html/upload.php +++ b/html/upload.php @@ -22,7 +22,7 @@ if(isset($_POST['page-content'])) { $upload->bindParam(':filename', $filename); $upload->bindParam(':titre', htmlspecialchars($_POST['titre'])); $upload->bindParam(':auteur', $_SESSION['display_name']); - $upload->bindParam(':date', date()); + $upload->bindParam(':date', date("Y-m-d")); if($upload->execute()) { $status = "Article PubliƩ"; } else {