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:
@@ -71,11 +71,12 @@ class screenshot
|
||||
function create()
|
||||
{
|
||||
$hResult = query_parameters("INSERT INTO appData
|
||||
(versionId, type, description, queued, submitterId)
|
||||
VALUES('?', '?', '?', '?', '?')",
|
||||
(versionId, type, description, queued, submitTime, submitterId)
|
||||
VALUES('?', '?', '?', '?', ?, '?')",
|
||||
$this->iVersionId, "screenshot",
|
||||
$this->sDescription,
|
||||
$this->mustBeQueued() ? "true" : "false",
|
||||
"NOW()",
|
||||
$_SESSION['current']->iUserId);
|
||||
if($hResult)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user