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:
@@ -75,9 +75,11 @@ class Monitor {
|
||||
return FALSE;
|
||||
|
||||
// create the new monitor entry
|
||||
$hResult = query_parameters("INSERT INTO appMonitors (versionId, appId, userId) ".
|
||||
"VALUES ('?', '?', '?')",
|
||||
$this->iVersionId, $this->iAppId, $this->iUserId);
|
||||
$hResult = query_parameters("INSERT INTO appMonitors (versionId, appId,".
|
||||
"submitTime, userId) ".
|
||||
"VALUES ('?', '?', ?, '?')",
|
||||
$this->iVersionId, $this->iAppId,
|
||||
"NOW()", $this->iUserId);
|
||||
|
||||
if($hResult)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user