[mythtv-commits] Ticket #12175: "This time" filter only matches shows that are later than original schedule time
MythTV
noreply at mythtv.org
Sat Jun 14 13:03:44 UTC 2014
#12175: "This time" filter only matches shows that are later than original schedule
time
--------------------------------------+-------------------------
Reporter: tuxtiger@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
The filter calculates the difference in minutes between the scheduled time
and the airtime. If the airtime is n days + 9 minutes later, the MOD1140
will result in 9 which is smaller than 10.
If the show however is 1 minute earlier...the result of the query is 1339
which is of course not smaller than 10.
The query should also check if result >= 1440 - 10 I think?
Proposed query:
1430 <= ABS(TIMESTAMPDIFF(MINUTE, CONVERT_TZ( ADDTIME(RECTABLE.startdate,
RECTABLE.starttime), 'Etc/UTC', 'SYSTEM'), CONVERT_TZ(program.starttime,
'Etc/UTC', 'SYSTEM'))) MOD 1440 <= 10
db schema: 1317
test query: SELECT ABS( TIMESTAMPDIFF(
MINUTE , CONVERT_TZ( "2014-06-12 18:08:00", 'Etc/UTC', 'SYSTEM' ) ,
CONVERT_TZ( "2014-06-13 18:07:00", 'Etc/UTC', 'SYSTEM' ) ) ) MOD1440
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12175>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list