From 02457720319a6e5d0f2fe67c9044b69eea77a1b3 Mon Sep 17 00:00:00 2001 From: "jisangs (iMac)" Date: Sat, 23 Apr 2022 22:55:21 +0900 Subject: [PATCH] Fix: add_maestro - AcceptClausesDateTime = NOW() --- src/web/server/maestro/add_maestro.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/server/maestro/add_maestro.php b/src/web/server/maestro/add_maestro.php index 7cdbf09..4d6576a 100644 --- a/src/web/server/maestro/add_maestro.php +++ b/src/web/server/maestro/add_maestro.php @@ -67,7 +67,7 @@ function add_maestro($maestro_name, $password, $email, $account_type) { $query = " INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, AvailableActivateDateTime, PlayerCount, AcceptClausesDateTime, AllowEditEnterCode, MaestroTestID) - VALUES (?, PASSWORD(?), ?, ?, 0, '0000-00-00 00:00:00', 0, NOW(), 0, 0)"; + VALUES (?, PASSWORD(?), ?, ?, 0, NOW(), 0, NOW(), 0, 0)"; $stmt = $db_conn->prepare($query); $stmt->bind_param("sssi", $maestro_name, $password, $email, $account_type); $stmt->execute();