Convert from timestamp to datetime. Datetime is consistent between mysql 4.0x and newer
versions and is faster for date/time computations. Modify object creation methods to specify any time fields that were previously updated with timestamp properties.
This commit is contained in:
@@ -68,7 +68,7 @@ function vote_add($iVersionId, $iSlot, $iUserId = null)
|
||||
vote_remove($iSlot, $iUserId);
|
||||
|
||||
query_parameters("INSERT INTO appVotes (id, time, versionId, userId, slot)
|
||||
VALUES (?, ?, '?', '?', '?')", "null", "null",
|
||||
VALUES (?, ?, '?', '?', '?')", "null", "NOW()",
|
||||
$iVersionId, $iUserId, $iSlot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user