[mythtv-users] Issue: User jobs, mythlink, and Timezone

Michael mythtv at blandford.net
Mon Dec 14 21:31:09 UTC 2015


On 12/14/2015 02:23 PM, Roger Siddons wrote:
> On 14/12/15 20:58, Michael wrote:
>>
>> In the job, I pass the chanid and the starttime values.
>>
>> What was passed to the user job was: 9296 for chanid and 
>> 20151213215800 for the starttime.  When mythlink.pl runs, it does a 
>> sql query for a show that was recorded on that chanid and starttime 
>> and fails to find anything and no links are created.
>>
>> Looking in the database for this recording, I see that actual start 
>> time is 2015-12-14 04:58:00.  This is a difference of 7 hours.  I 
>> happen to live in UTC -7.  So it looks like a timezone issue.
>>
>> If I run my user job again by hand, but modify it to pass the 
>> starttime + 7 hours, then mythlink runs and finds the show and the 
>> appropriate link is created.
>>
>> I am not sure how to fix this.  Any suggestions?
>>
>
> Use %STARTTIMEUTC% instead of %STARTTIME%
>
> https://www.mythtv.org/wiki/User_Jobs
>


Thanks!,

I see the note on this page regarding the various xxxUTC variables.

Sadly, many of the wiki pages ( that I was following ) don't make 
mention of them and still use STARTTIME.

Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151214/d8ae94e1/attachment.html>


More information about the mythtv-users mailing list