[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: TZ variable and mod_perl
From:       Stas Bekman <stas () stason ! org>
Date:       2005-10-31 19:20:31
Message-ID: 43666E7F.6010002 () stason ! org
[Download RAW message or body]

Balázs Szabó (dLux) wrote:
> 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?

http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#C_Libraries_Don_t_See_C__ENV__Entries_Set_by_Perl_Code




-- 
_____________________________________________________________
Stas Bekman mailto:stas@stason.org  http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book       http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic