Kim Nielsen <knielsen@proventum-solutions.net> wrote:
....
> du kan sikkert stille det via linux-conf men eller kan du selv stille
> det i den .bash_profile/.profile via system variablen TZ
Jeg er ikke så sikker på at TZ anvendes af særlig mange applikationer ;(
klip fra min debian /usr/doc/timezone/FAQ :
.........
4.3. When I set the timezone by setting the TZ environment variable
to EST5EDT things go wrong since glibc computes the wrong time
from this information.
{UD} The problem is that people still use the braindamaged POSIX method to
select the timezone using the TZ environment variable with a format EST5EDT
or whatever. People, read the POSIX standard, the implemented behaviour is
correct! What you see is in fact the result of the decisions made while
POSIX.1 was created. We've only implemented the handling of TZ this way to
be POSIX compliant. It is not really meant to be used.
The alternative approach to handle timezones which is implemented is the
correct one to use: use the timezone database. This avoids all the problems
the POSIX method has plus it is much easier to use. Simply run the tzselect
hell script, answer the question and use the name printed in the end by
making a symlink to /usr/share/zoneinfo/NAME (NAME is the returned value
from tzselect) from the file /etc/localtime. That's all. You never again
.........
--
mvh Frank Damgaard |
http://home3.inet.tele.dk/frda/