summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1
blob: 26d4c36ab923e45f2f18c78f32bfac49cd97bf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/mythtv/programs/mythbackend/httpstatus.cpp b/mythtv/programs/mythbackend/httpstatus.cpp
index 8571a58..be0272f 100644
--- a/mythtv/programs/mythbackend/httpstatus.cpp
+++ b/mythtv/programs/mythbackend/httpstatus.cpp
@@ -1392,13 +1392,17 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info )
             QString sStatus = e.attribute( "status"   , ""  );
             QDateTime next  = MythDate::fromString( e.attribute( "next"     , ""  ));
             QString sNext   = next.isNull() ? "" :
-                                MythDate::toString(next, MythDate::kDatabase);
+                                MythDate::toString(next, MythDate::kDateTimeFull);
             QString sMsg    = "";
 
             QDateTime thru  = MythDate::fromString( e.attribute( "guideThru", ""  ));
 
             QDomText  text  = e.firstChild().toText();
 
+            QString mfdblrs =
+                gCoreContext->GetSetting("mythfilldatabaseLastRunStart");
+            QDateTime lastrunstart = MythDate::fromString(mfdblrs);
+
             if (!text.isNull())
                 sMsg = text.nodeValue();
 
@@ -1412,7 +1416,7 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info )
 
             os << sStatus << "<br />\r\n";
 
-            if (!next.isNull() && sNext >= sStart)
+            if (!next.isNull() && next >= lastrunstart)
             {
                 os << "    Suggested next mythfilldatabase run: "
                     << sNext << ".<br />\r\n";