Hi,

I am the author of the Class::Date module, which can be found in CPAN,
and i had a complaint about timezone handling in perl.

I tried to debug it, and I have found that mod_perl uses the TZ
environment somehow differently.

What I did in my module is the following:

delete $ENV{TZ};
tzset();
($a, $b) = tzname();

$a should contain the local timezone (according to the documentation of
the tzset manual), although it is UTC always. What I suspect is that
when I delete the TZ variable from the environment, it does not really
delete it.

How I can make sure that this variable is deleted?

Do you know any other way to get the timezone which is guessed by
tzset() in case of the TZ environment variable does not work?

I have tested this in gentoo linux with perl 5.8.6 + mod_perl 2.0.1 and
on Centos 4 with perl 5.8.6 + mod_perl 1.99.16.

This error did not occur on Centos 4 with perl 5.8.5 +mod_perl 1.99.16
though, and did not occur in a non mod_perl environment either!

Any clue where I can go now? :-)

Thanks in advance,

-- 

Szabó Balázs (dLux)
--   --  - - - -- -


Reply via email to