From: Andrew Ruthven Date: Tue, 2 Aug 2016 12:04:55 +0000 (+1200) Subject: Have Next Recording sum up the days including all bigger values X-Git-Tag: 0.10.8~6 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04731c61f558dea69b495ec584868ecf84b3366;p=mythtv-status.git Have Next Recording sum up the days including all bigger values This fixes the issue where if the Next Recording is more than a week and 1 day in the future, we'll report the wrong value for the Next Recording. --- diff --git a/ChangeLog b/ChangeLog index 2eff48b..4291484 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-08-02 Andrew Ruthven + Fix a long standing bug where if the Next Recording is a week + and one day in the future, the Next Recording only shows + the hours. + 2016-08-02 Andrew Ruthven Somewhere between Date::Manip v6.0 and v6.32 the behaviour for DateCalc has changed, so that now a DateCalc will keep on diff --git a/bin/mythtv-status b/bin/mythtv-status index 122c4dc..45829b7 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -471,7 +471,7 @@ my @blocks = ( # print out the days and hours. my $str; if ($seconds > 24 * 3600) { - $str = Delta_Format($delta, 0, '%dd Days, %hv Hours'); + $str = Delta_Format($delta, 0, '%dh Days, %hv Hours'); } else { $str = Delta_Format($delta, 0, '%hh Hours, %mv Minutes'); }