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 {