$end_date = mktime();
$start_date = $end_date - $delay;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
switch( $this->driver )
{
$end_date = mktime();
$start_date = $end_date - $delay;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
//echo "start date: $start_date <br />";
//echo "end date: $end_date <br />";
$end_date = mktime();
$start_date = $end_date - $delay;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
switch( $this->driver )
{
$end_date = mktime();
$start_date = $end_date - $delay;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
// Job status
switch( $type )
$end_date = mktime();
$start_date = $end_date - $delay;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
if( $delay != ALL ) {
$query .= "WHERE EndTime BETWEEN '$start_date' AND '$end_date'";
$end_date = mktime();
$start_date = $end_date - LAST_DAY;
- $start_date = date( "Y-m-d H:m:s", $start_date );
- $end_date = date( "Y-m-d H:m:s", $end_date );
+ $start_date = date( "Y-m-d H:i:s", $start_date );
+ $end_date = date( "Y-m-d H:i:s", $end_date );
switch( $dbSql->driver )
{
$query .= "ORDER BY Job.EndTime DESC";
break;
}
+
$jobsresult = $dbSql->db_link->query( $query );
if( PEAR::isError( $jobsresult ) ) {