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:[EMAIL PROTECTED] 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/
