<div class="gmail_quote">2012/5/24 Karl Dietz <span dir="ltr">&lt;<a href="mailto:dekarl@spaetfruehstuecken.org" target="_blank">dekarl@spaetfruehstuecken.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 23.05.2012 22:17, Josu Lazkano wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks both, I have 3 different sources and this the only one with<br>
different times. So I can not fix my local time, I will delay the other<br>
XMLTV sources.<br>
</blockquote>
<br></div>
Hi Josu,<br>
<br>
what we are getting at is that all xmltv source *must* be explicit<br>
about their time zone. e.g. timestamps *must* looks like<br>
201205240730 +0200 (now in Germany) or 201205240630 +0100 (now in UK)<br>
<br>
Looking at my notes <a href="http://wiki.xmltv.org/index.php/User:Dekarl#Potential_Data_Sources" target="_blank">http://wiki.xmltv.org/index.<u></u>php/User:Dekarl#Potential_<u></u>Data_Sources</a> I see that Phazer was broken in that<br>

regard when I last looked at their data.<br>
<br>
MythTV will then do the right thing if you set your XMLTV timezone<br>
setting to &quot;auto&quot;. There is no need to change any files. (if that does<br>
not work its a bug and should be fixed :)<br>
<br>
My suggestion is to write a grabber for Phazer that know the local time<br>
zone for each channel and fixes their guide (or even better fix it at<br>
generation)<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My other sources has same timezone. I use to execute nightly with cron.<br>
</blockquote>
<br></div>
PS: did you look at tv_grab_uk_rt for the BBC channels? They provide<br>
correct times.<br>
<br>
Regards,<br>
Karl<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div>Thanks all, I get this python script:<br><br>#!/usr/bin/python<br># -*- coding: utf-8 -*-<br><br>import re, sys<br><br>if len(sys.argv)==2:<br>    with open(sys.argv[1]) as file:<br>        txt=file.read()<br>
    fechas=re.findall(r&quot;[0-9]{14}&quot;,txt)<br><br>    for fecha in fechas:<br>        numero=str(int(fecha[8:10])-1 % 24).zfill(2)<br>        actualizada=fecha[:8]+numero+fecha[10:]<br>        txt=txt.replace(fecha, actualizada)<br>
<br>    with open(sys.argv[1], &quot;w&quot;) as file:<br>        file.write(txt)<br>else:<br>    print &quot;Usage: python change_hour.py file&quot;<br><br>Best regards. <br></div></div><br clear="all"><br>-- <br>Josu Lazkano<br>