use getCurrentDatetime() instead of CURRENT_TIMESTAMP

This commit is contained in:
Uwe Steinmann 2016-08-08 12:58:06 +02:00
parent bdb448e7e8
commit 176fb7967b

View File

@ -48,7 +48,7 @@ class SeedDMS_PasswordHistoryManager {
function add($user, $pwd) { /* {{{ */
$queryStr = "INSERT INTO tblUserPasswordHistory (userID, pwd, `date`) ".
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", CURRENT_TIMESTAMP)";
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", ".$this->db->getCurrentDatetime().")";
if (!$this->db->getResult($queryStr)) {
return false;
}