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:
@@ -120,11 +120,13 @@ class Bug {
|
||||
|
||||
/* passed the checks so lets insert the puppy! */
|
||||
|
||||
$hResult = query_parameters("INSERT INTO buglinks (versionId, bug_id, queued, submitterId) ".
|
||||
"VALUES('?', '?', '?', '?')",
|
||||
$hResult = query_parameters("INSERT INTO buglinks (versionId, bug_id, ".
|
||||
"submitTime, submitterId, queued) ".
|
||||
"VALUES('?', '?', ?, '?', '?')",
|
||||
$this->iVersionId, $this->iBug_id,
|
||||
$this->bQueued ? "true":"false",
|
||||
$_SESSION['current']->iUserId);
|
||||
"NOW()",
|
||||
$_SESSION['current']->iUserId,
|
||||
$this->bQueued ? "true":"false");
|
||||
if($hResult)
|
||||
{
|
||||
$this->iLinkId = mysql_insert_id();
|
||||
@@ -279,7 +281,7 @@ class Bug {
|
||||
$oBug->sBug_status,
|
||||
$oBug->sResolution,
|
||||
$oBug->sShort_desc,
|
||||
print_date(mysqltimestamp_to_unixtimestamp($oRow->submitTime))),
|
||||
print_date(mysqldatetime_to_unixtimestamp($oRow->submitTime))),
|
||||
($i % 2) ? "color0" : "color1");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user