[mythtv] [mythtv-commits] Ticket #5896: Allow NIS-format /etc/timezone

Otto Kolsi otto at kolsi.fi
Sat Jan 3 17:05:37 UTC 2009


Michael T. Dean wrote:
> Do you have an /etc/timezone file?  If so, what are its contents?  We 

No, there's no /etc/timezone file.

> You would need to use the myth_time_zone.pl script (the myth_timezone.pl 
> test script was "obsoleted" when I found out that time zone is actually 
> 2 words, not one, and changed the protocol command to QUERY_TIME_ZONE).  

Okay, it took awhile to find that is is attached to #5319. Here's the 
output:

$ ./myth_time_zone.pl
Current Timezone Information
       id: Europe/Helsinki
   offset: 7200
     time: 2009-01-03T18:46:12

> Or, if you have any remote backends, you can find out what time zone is 
> in use in the remote backend's log file (assuming -v important is 

I don't have remote backend but a remote frontend and in it's log there is:

"Backend is running in Europe/Helsinki time zone."

> You don't have an /etc/timezone that's a link to/copy of a file in 
> /usr/share/zoneinfo, do you?  I.e. does:

No, it is not a link or copy, it does not exist at all.

Actually, what seems to be happening in MythWeb is that in setTimezone() 
the first if() condition is not met. So the QUERY_TIME_ZONE command is 
actually never sent to backend (at least within that function). Maybe 
the problem lies within MythWeb and not in the master backend?

I tried quickly do some debugging with MythWeb and in setTimezone()
$_SESSION['backend']['timezone']['value'] seems to have value "U" which 
doesn't sound right..
-- 
   Otto


More information about the mythtv-dev mailing list