Index: trunk/phase3/languages/Language.php |
— | — | @@ -3436,7 +3436,15 @@ |
3437 | 3437 | } elseif ( round( $seconds ) <= 2*86400 ) { |
3438 | 3438 | $hours = floor( $seconds / 3600 ); |
3439 | 3439 | $minutes = floor( ( $seconds - $hours * 3600 ) / 60 ); |
3440 | | - $secondsPart = floor( $seconds - $hours * 3600 - $minutes * 60 ); |
| 3440 | + $secondsPart = round( $seconds - $hours * 3600 - $minutes * 60 ); |
| 3441 | + if ( $secondsPart == 60 ) { |
| 3442 | + $secondsPart = 0; |
| 3443 | + $minutes++; |
| 3444 | + } |
| 3445 | + if ( $minutes == 60 ) { |
| 3446 | + $minutes = 0; |
| 3447 | + $hours++; |
| 3448 | + } |
3441 | 3449 | $s = $this->formatNum( $hours ) . $this->getMessageFromDB( 'hours-abbrev' ) . |
3442 | 3450 | ' ' . |
3443 | 3451 | $this->formatNum( $minutes ) . $this->getMessageFromDB( 'minutes-abbrev' ); |