Use PHP date() instead of SQL NOW()

This commit is contained in:
Skylar Ittner 2017-05-22 02:58:03 -06:00
parent 1138d20b0a
commit 756484573a
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -287,7 +287,7 @@ function insertAuthLog($type, $uid = null, $data = "") {
} else {
$ip = "NOT FOUND";
}
$database->insert("authlog", ['#logtime' => 'NOW()', 'logtype' => $type, 'uid' => $uid, 'ip' => $ip, 'otherdata' => $data]);
$database->insert("authlog", ['logtime' => date("Y-m-d H:i:s"), 'logtype' => $type, 'uid' => $uid, 'ip' => $ip, 'otherdata' => $data]);
}
function verifyReCaptcha($response) {