summarylogtreecommitdiffstats
path: root/001-timezone.patch
diff options
context:
space:
mode:
authorTaijian2019-04-16 15:46:31 +0200
committerTaijian2019-04-16 15:46:31 +0200
commitcc17381956fc246cf150728258ae78d2fe240aac (patch)
tree3b59a85209bc89f81a32388be5272ca505c5dcc8 /001-timezone.patch
parent36ed03267aa2cbed50fc443d60bf46e87b337add (diff)
downloadaur-cc17381956fc246cf150728258ae78d2fe240aac.tar.gz
add some new patches queued for 30.1
Diffstat (limited to '001-timezone.patch')
-rw-r--r--001-timezone.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/001-timezone.patch b/001-timezone.patch
new file mode 100644
index 000000000000..520299a4aa7d
--- /dev/null
+++ b/001-timezone.patch
@@ -0,0 +1,25 @@
+Index: mythtv/programs/mythfrontend/prevreclist.cpp
+===================================================================
+--- mythtv/programs/mythfrontend/prevreclist.cpp (revision 0e7e57f9c2eb0e2c4f47dcb30788a4e54d6808ba)
++++ mythtv/programs/mythfrontend/prevreclist.cpp (revision c08b7ae0e7589dbe54d817a1d6296688e576d675)
+@@ -237,5 +237,7 @@
+ bool PrevRecordedList::LoadDates(void)
+ {
+- QString querystr = "SELECT DISTINCT YEAR(starttime), MONTH(starttime) "
++ QString querystr = "SELECT DISTINCT "
++ "YEAR(CONVERT_TZ(starttime,'UTC','SYSTEM')), "
++ "MONTH(CONVERT_TZ(starttime,'UTC','SYSTEM')) "
+ "FROM oldrecorded "
+ "WHERE oldrecorded.future = 0 " + m_where;
+@@ -404,6 +406,9 @@
+ MSqlBindings bindings;
+ QString sql = " AND oldrecorded.title = :TITLE " + m_where;
+- int selected = m_titleList->GetCurrentPos();
+- bindings[":TITLE"] = m_titleData[selected]->GetTitle();
++ uint selected = m_titleList->GetCurrentPos();
++ if (selected < m_titleData.size())
++ bindings[":TITLE"] = m_titleData[selected]->GetTitle();
++ else
++ bindings[":TITLE"] = "";
+ if (!m_title.isEmpty())
+ bindings[":MTITLE"] = m_title;