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

Stefan Frank sfr+lists at 6913304088794.gnuu.de
Sun Nov 2 12:02:22 EST 2003


Hi Erik!

Erik Dooper <erik at dooper.com> writes:

> On Sun, 2003-11-02 at 00:44, Stefan Frank wrote:
>
> 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 ?
>

It shouldn't be an empty string.

Can you apply the attached patch to setup, run setup again and select
None for TimeOffset? Or simply change it manually in the db to 'None'
(without the ticks).

Unfortunatelly this probably won't change anything for you, but give it
a try!

Remember to empty the program and programrating tables before running
mythfilldatabase again.

This will import the program start/stop times as they are, ignoring the 
timezone. It should result in correct times _if_ your computers timezone
match the one in the xml files _and_ the xml time spec. is actually
correct. I have seen provider listings specifying the wrong timezone
(setting it to +0100 when in fact the start/stop times were in +0200).

>   <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.
>

The 'Auto' part of the code was written by someone else to keep 
compatibility with Qt 3.0. I've been using this setting ever since
without a problem.

What is your H/W clock set to: UTC or localtime? I've set mine to UTC.

Bye, Stefan

-- 
It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg.

                                   -- Thomas Jefferson
-------------- next part --------------
--- mythtv/setup/backendsettings.cpp.keep	2003-11-02 17:04:50.000000000 +0100
+++ mythtv/setup/backendsettings.cpp	2003-11-02 16:57:42.000000000 +0100
@@ -217,7 +217,7 @@
     TimeOffset():
         BackendSetting("TimeOffset") {
         setLabel("Time offset for XMLTV listings");
-        addSelection("None", "");
+        addSelection("None");
         addSelection("Auto");
         addSelection("+0030");
         addSelection("+0100");


More information about the mythtv-users mailing list