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:
@@ -297,11 +297,13 @@ class downloadurl
|
||||
return FALSE;
|
||||
|
||||
$hResult = query_parameters("INSERT INTO appData (versionId, type,
|
||||
description, url, queued, submitterId)
|
||||
VALUES('?','?','?','?','?','?')",
|
||||
description, url, queued, submitTime, submitterId)
|
||||
VALUES('?', '?', '?', '?', '?', ?, '?')",
|
||||
$this->iVersionId, "downloadurl", $this->sDescription,
|
||||
$this->sUrl, downloadurl::canEdit($this->iVersionId) ?
|
||||
"false" : "true", $_SESSION['current']->iUserId);
|
||||
$this->sUrl,
|
||||
downloadurl::canEdit($this->iVersionId) ? "false" : "true",
|
||||
"NOW()",
|
||||
$_SESSION['current']->iUserId);
|
||||
|
||||
$this->iId = mysql_insert_id();
|
||||
if(!$hResult)
|
||||
|
||||
Reference in New Issue
Block a user