commit c0bdbefcd509e6915126a404ba6197e57ed9ce01
parent 319557d7218ecdc31daa060384cf65a9801e830d
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 16 Jan 2015 20:15:02 +0100
try to fix date
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -41,7 +41,7 @@ while (ob_get_status()) {
$text = $_POST['content'];
$category = $_POST['category'];
- if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'Now();', '$category')")) {
+ if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'DATE(date);', '$category')")) {
}
$connection->close();
ob_end_clean();