From f04731c61f558dea69b495ec584868ecf84b3366 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 3 Aug 2016 00:04:55 +1200 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ bin/mythtv-status | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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'); } -- 2.30.2