]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/index.php
bacula-web: Internal PHP code fix
[bacula/bacula] / gui / bacula-web / index.php
index c4736bacd2effa564bf6610d57f489741e25ffd5..6bb00269845d555c2686ba7458223a89c0f4b72e 100644 (file)
@@ -147,7 +147,7 @@ $days  = array();
 
 // Get the last 7 days interval (start and end)
 for( $c = 6 ; $c >= 0 ; $c-- ) {
-       $today = ( mktime() - ($c * 86400) );
+       $today = ( mktime() - ($c * LAST_DAY) );
        array_push( $days, array( 'start' => date( "Y-m-d 00:00:00", $today ), 'end' => date( "Y-m-d 23:59:00", $today ) ) );
 }