<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div><hr id="stopSpelling">To: mythtv-users@mythtv.org<br>From: mythtv@blandford.net<br>Date: Mon, 14 Dec 2015 14:31:09 -0700<br>Subject: Re: [mythtv-users] Issue: User jobs, mythlink, and Timezone<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">On 12/14/2015 02:23 PM, Roger Siddons
      wrote:<br>
    </div>
    <blockquote cite="mid:566F336E.2010503@ntlworld.com">
      
      <div class="ecxmoz-cite-prefix">On 14/12/15 20:58, Michael wrote:<br>
      </div>
      <blockquote cite="mid:566F2D6B.80406@blandford.net"><br>
        In the job, I pass the chanid and the starttime values. <br>
        <br>
        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. <br>
        <br>
        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. <br>
        <br>
        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. <br>
        <br>
        I am not sure how to fix this.  Any suggestions? <br>
        <br>
      </blockquote>
      <br>
      Use %STARTTIMEUTC% instead of %STARTTIME%<br>
      <br>
      <a href="https://www.mythtv.org/wiki/User_Jobs" target="_blank">https://www.mythtv.org/wiki/User_Jobs</a><br>
      <br>
    </blockquote>
    <br>
    <br>
    Thanks!,<br>
    <br>
    I see the note on this page regarding the various xxxUTC variables.<br>
    <br>
    Sadly, many of the wiki pages ( that I was following ) don't make
    mention of them and still use STARTTIME.<br>
    <br>
    Michael<br>
    <br><br><br>Many of the wiki pages pre-date the introduction of the UTC parameters (I think with 0.27).</div><div>Why not edit those pages to clarify the point?</div><div>Phil<br><br>
  

<br>_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org</div>                                       </div></body>
</html>