diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-01-30 15:48:09 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-01-30 15:48:09 (GMT) |
commit | fb52b64b5af9edfe83c361916a51c28d802b1d36 (patch) | |
tree | 7f6d8c693a47eb3ab348e45785c61a9199ee277e /abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1 | |
parent | 9b6c8730fe90c05fa38880963f4fea2ac7ab7391 (diff) | |
download | linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.zip linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.gz linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.bz2 |
mythtv mythplugins mythweb: add fixes/30 branch. refs#1034
Diffstat (limited to 'abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1')
-rw-r--r-- | abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1 b/abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1 new file mode 100644 index 0000000..26d4c36 --- /dev/null +++ b/abs/core/mythtv/stable-30/mythtv/suggestedstarttime.patch.v1 @@ -0,0 +1,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"; |