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:
@@ -99,9 +99,11 @@ class distribution {
|
||||
}
|
||||
}
|
||||
|
||||
$hResult = query_parameters("INSERT INTO distributions (name, url, submitterId, queued) ".
|
||||
"VALUES ('?', '?', '?', '?')",
|
||||
$hResult = query_parameters("INSERT INTO distributions (name, url, submitTime, ".
|
||||
"submitterId, queued) ".
|
||||
"VALUES ('?', '?', ?, '?', '?')",
|
||||
$this->sName, $this->sUrl,
|
||||
"NOW()",
|
||||
$_SESSION['current']->iUserId,
|
||||
$this->mustBeQueued() ? "true" : "false");
|
||||
if($hResult)
|
||||
@@ -570,7 +572,7 @@ class distribution {
|
||||
else
|
||||
echo $oSubmitter->sRealname;
|
||||
echo '</td>',"\n";
|
||||
echo '<td>'.date("M d Y", mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n";
|
||||
echo '<td>'.date("M d Y", mysqldatetime_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n";
|
||||
echo '<td>'.$oTest->sTestedRelease.' </td>',"\n";
|
||||
echo '<td>'.$oTest->sInstalls.' </td>',"\n";
|
||||
echo '<td>'.$oTest->sRuns.' </td>',"\n";
|
||||
|
||||
Reference in New Issue
Block a user