From 5a76e8fd4a4f450cf7a4daa107e4469bbdc53da9 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Thu, 22 Jul 2021 09:43:36 +0800 Subject: [PATCH] Script.php: bugfix 21 http://118.25.96.118/bugzilla/show_bug.cgi?id=21 --- Script.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Script.php b/Script.php index 851323e..c0ba6a9 100644 --- a/Script.php +++ b/Script.php @@ -414,7 +414,7 @@ if (!empty($_POST["frm_uploadlab"])) { $deadline = $deadlinedate." ".$deadlinetime; - $date = date("Y-m-d H:i"); + $date = date("Y-m-d H:i:s"); @@ -537,7 +537,7 @@ if (!empty($_POST["frm_submitlab"])) { $url = mysqli_real_escape_string($con, $_POST["url"]); $deadline = $deadlinedate." ".$deadlinetime; - $date = date("Y-m-d H:i"); + $date = date("Y-m-d H:i:s"); // GET UPLOADED FILES $labName = mysqli_query($con,"SELECT * FROM `lab_reports_table` WHERE Lab_Report_ID=$lab_id"); @@ -729,7 +729,7 @@ if (!empty($_GET["savemarks"])) { echo " Marks could not be greater than total"; return; } - $date= date("Y-m-d H:i"); + $date= date("Y-m-d H:i:s"); $feedback="
@$date : ".$feedback; $sql="UPDATE `lab_report_submissions` SET `Marks`='$marks',`Status`='$status',"