[mythtv-users] Re: Listings off by one hour

Erik Dooper erik at dooper.com
Sun Nov 2 07:22:16 EST 2003


On Sun, 2003-11-02 at 00:44, Stefan Frank wrote:

> >
> > I had a look at the the piece of code that is responsible for the
> > timeoffset calculation and the
> > timeoffset is somehow calculated as 60 for my setup, instead of 0. I
> > don't know why it does that, though. I suspect some obscure system
> > setting, in true Unix fashion tucked deep deep down somewhere...
> 
> Is that with TimeOffset == Auto or +0100 ?


I added some debug statements: this is the output with different values
chosen through the mythsetup frontend. 

None: localTimezoneOffset: 60
Auto: localTimezoneOffset: 60
+0100 localTimezoneOffset: 60
-0100 localTimezoneOffset: -60

Here I updated the database directly: 

Updated with database text: +0000
+0000 localTimezoneOffset: 0

This last setting does the trick - now my listings are on time again.
Maybe this is a quick fix,
to insert +0000 as the "None" value, instead of an empty string ?


> 'Ignoring invalid TimeOffset' is only printed if your TimeOffset setting
> is not in the format '+0100' or '-1030', so that seems to be wrong.
> Note that it's NOT printed for TimeOffset == "None".


You're right. 


> 
> Have a look at the TV listings xml file. Probably the times/timezone is
> off by one hour, but b/c of the invalid TimeOffset mythfilldatabase
> doesn't do anything.


  <programme start="20031102125800 +0100" stop="20031102130000 +0100"
channel="1.tvgids.nl">
    <title lang="nl">Wilde Ganzen</title>
    <url>http://www.tvgids.nl/detail.php?pid=848095&amp;tab=1</url>
  </programme>

If I look in the debugger at my timezone, this is the output:
$3 = {tm_sec = 34, tm_min = 2, tm_hour = 13, tm_mday = 2, tm_mon = 10,
tm_year = 103, tm_wday = 0, tm_yday = 305, tm_isdst = 0,   tm_gmtoff =
3600, tm_zone = 0x8049780 "CET"}

I don't know why the Auto setting does not work correctly, it should.
+0100 and tm_gmtoff = 3600 both represent GMT+1.

Bye,

Erik



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20031102/7d9b001a/attachment.html


More information about the mythtv-users mailing list