Re: TZ variable and mod_perl

2005-11-02 Thread Tyler MacDonald
"Balázs Szabó (dLux)" <[EMAIL PROTECTED]> wrote: > 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 >

Re: TZ variable and mod_perl

2005-11-01 Thread Perrin Harkins
On Tue, 2005-11-01 at 14:09 +0100, "Balázs Szabó (dLux)" wrote: > As I read the perlthrtut, it seems that using this module is most > probably will change the whole process' environment, so another > paralelly served request can be affected as well, right? It depends. Take a look at this: http://

Re: TZ variable and mod_perl

2005-11-01 Thread Balázs Szabó (dLux)
Hi, Tyler, thank you for the answer, I tried it, and it worked! Although I am a little bit worried about the ithreads issues with this. As I read the perlthrtut, it seems that using this module is most probably will change the whole process' environment, so another paralelly served request can be

Re: TZ variable and mod_perl

2005-10-31 Thread Stas Bekman
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

Re: TZ variable and mod_perl

2005-10-31 Thread JupiterHost.Net
Balázs Szabó (dLux) wrote: Hi, Hello, 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

TZ variable and mod_perl

2005-10-31 Thread Balázs Szabó (dLux)
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();