<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1">On 11/08/10 06:00, Alessandro wrote:</font>
<blockquote
cite="mid:mailman.9.1289217602.2642.mythtv-users@mythtv.org"
type="cite"><font size="-1">I am living in France, but my mythbox
is in UK time (simpler that way,</font><br>
<pre wrap="">as all my recordings are from FreeSat UK etc etc).
However, I have a macbook running mythfront end that I want to connect
to the backend to watch recordings/live TV etc - but, I need to change
my macbook's timezone before it will work correctly.
The frontend app just crashes, if the mac is not configured to as UK
timezone like the backend.
Is there a way to 'trick' the frontend or backend so that I don't need
to keep changing my macbook's timezone each time I open the front end?
(and save setting it back to France time when closing the frontend
app) !!
</pre>
</blockquote>
<font size="-1">You can set the timezone independently for each
process on a UNIX system through the TZ environment variable. For
example,<br>
<br>
% date<br>
Mon Nov 8 10:10:08 CST 2010<br>
% TZ=PST8PDT date<br>
Mon Nov 8 08:10:10 PST 2010<br>
% TZ=Paris date<br>
Mon Nov 8 16:10:14 Paris 2010<br>
<br>
This syntax applies the environment variable only to the command
following it. It does not set the value into the environment of
the shell where you typed the command.<br>
<br>
You could simply put the desired zone name (e.g., London) into the
TZ variable and change the "date" command above to your front-end
command (with whatever options you want). Of course, you could
also have a small shell script that sets the environment variable
and then runs the front-end to reduce typing. (To see a list of
available timezone names, look in /usr/share/zoneinfo and its
subdirectories.)<br>
<br>
By doing it this way, the environment variable change affects
*only* the front-end startup and all other processes on the system
continue using the normal time zone.<br>
<br>
Note that this technique works for any environment variable, not
just TZ.<br>
<br>
Keith</font><br>
<br>
</body>
</html>