Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix UTC issues dealing with program.originalairdate.
These were missed earlier.  Thanks to Jim Stichnoth for spotting the
problem.
  • Loading branch information
gigem committed Sep 11, 2012
1 parent 14fbeb5 commit 186e2c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mythtv/programs/mythfrontend/customedit.cpp
Expand Up @@ -542,7 +542,8 @@ void CustomEdit::loadClauses()
rule.subtitle.clear();
rule.description = "program.first > 0 \n"
"AND program.programid LIKE 'EP%0001' \n"
"AND program.originalairdate = DATE(program.starttime) ";
"AND program.originalairdate = "
"DATE(CONVERT_TZ(program.starttime, 'UTC', 'SYSTEM')) ";
new MythUIButtonListItem(m_clauseList, rule.title,
qVariantFromValue(rule));

Expand Down
3 changes: 2 additions & 1 deletion mythtv/programs/mythfrontend/proglist.cpp
Expand Up @@ -1151,7 +1151,8 @@ void ProgLister::FillItemList(bool restorePosition, bool updateDisp)
if (qphrase == "premieres")
{
where += " AND ( ";
where += " ( program.originalairdate=DATE(program.starttime) ";
where += " ( program.originalairdate = DATE(";
where += " CONVERT_TZ(program.starttime, 'UTC', 'SYSTEM'))";
where += " AND (program.category = 'Special' ";
where += " OR program.programid LIKE 'EP%0001')) ";
where += " OR (program.category_type='movie' ";
Expand Down

0 comments on commit 186e2c0

Please sign in to comment.