]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed typo for date function in bweb.inc.php and jobs.php
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 16 Dec 2010 11:11:36 +0000 (12:11 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:33 +0000 (14:43 +0200)
 - Fixed wrong argument in date function for minute (H:m:s instead of H:i:s)

gui/bacula-web/bweb.inc.php
gui/bacula-web/jobs.php

index 7aef804d307ff932cf59d3b363005b4e87579600..d0211024b212d610d807a10b4d07be70b711515c 100644 (file)
@@ -359,8 +359,8 @@ class Bweb extends DB {
                        $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 )
                        {
@@ -389,8 +389,8 @@ class Bweb extends DB {
                        $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 />";
@@ -459,8 +459,8 @@ class Bweb extends DB {
                        $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 )
                        {
@@ -504,8 +504,8 @@ class Bweb extends DB {
                        $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 )
@@ -596,8 +596,8 @@ class Bweb extends DB {
                        $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'";
index 2f28c20f208a66b4595d373c96796d3f4d0378eb..1149c9e9f2a60789406fe53cbc09127665b07003 100644 (file)
@@ -66,8 +66,8 @@
   $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 ) 
   {
@@ -89,6 +89,7 @@
                $query .= "ORDER BY Job.EndTime DESC";
        break;
   }
+
   $jobsresult = $dbSql->db_link->query( $query );
   
   if( PEAR::isError( $jobsresult ) ) {