Changeset 147

Show
Ignore:
Timestamp:
10/04/07 00:40:27 (15 months ago)
Author:
chris
Message:

Brought timestamps into line with HellaNZB

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r143 r147  
    66* Fixed a bug where the automatic refresh would reduce the log to a single 
    77  line of text in IE. [ticket:4] 
     8 
     9* Changed the display of timestamps to match HellaNZB, making them clearer 
    810 
    9111.8 
  • trunk/classes/HellaController.php

    r144 r147  
    555555 
    556556                        if ($days > 1) { 
    557                                 $output = $days . ' Days, '; 
    558                         } elseif ($days > 0) { 
    559                                 $output = $days . ' Day, '; 
    560                         } 
    561  
    562                         $output .= $hours . ':' . str_pad($minutes, 2, '0', STR_PAD_LEFT) . ':' . str_pad($seconds, 2, '0', STR_PAD_LEFT); 
     557                                $output = $days . 'd '; 
     558                        } 
     559 
     560                        $output .= $hours . 'h ' . str_pad($minutes, 2, '0', STR_PAD_LEFT) . 'm ' . str_pad($seconds, 2, '0', STR_PAD_LEFT) . 's'; 
    563561                        return $output; 
    564562