[mythtv-commits] Ticket #11600: canned_searches.conf.php New Titles Premieres fix for UTC local time comparison
MythTV
noreply at mythtv.org
Fri Jun 14 16:55:30 UTC 2013
#11600: canned_searches.conf.php New Titles Premieres fix for UTC local time
comparison
-------------------------------------+-------------------------------------
Reporter: mythtv01@… | Owner: kormoc
Type: Bug Report - | Status: new
General | Milestone: unknown
Priority: minor | Version: 0.26
Component: Plugin - MythWeb | Keywords: mythweb canned_searches
Severity: low | utc
Ticket locked: 0 |
-------------------------------------+-------------------------------------
The New Titles, Premieres search in mythweb does not find many new titles
because in 0.26, the starttime is in UTC but originalairdate is left in
local time. So this comparison fails:
{{{
. ' AND DAYOFYEAR(program.originalairdate) ='
. ' DAYOFYEAR(program.starttime))'
}}}
I have hacked my system to wrap a CONVERT_TZ around starttime but my php
knowledge is terrible so I don't know how to look up what the correct
local timezone conversion should be to supply a real patch. But I can
confirm that doing this produces the right data for me, since this is my
timezone:
{{{
. ' AND DAYOFYEAR(program.originalairdate) ='
. 'DAYOFYEAR(CONVERT_TZ(program.starttime,"GMT","America/Los_Angeles")))'
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11600>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list