RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 11:25 AM To: Tyler; modperl@perl.apache.org Subject: RE: Using ENV{'TZ'} in mod_perl If you're using a perl compiled with thread support, you'll need to call POSIX::tzset() after setting $ENV{TZ}. From: Tyler [mailto

Re: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Jonathan Vanasco
From: Tyler [mailto:[EMAIL PROTECTED] Hello, I previously requested some help with setting $ENV{TZ} and using it’s value to modify the output of localtime (i.e. Make it time zone specific). The suggested solution was to use POSIX::tzset() because my perl installation was compiled with

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
code in a PerlFixUpHandler that sets the time zone data? Thank you for your help, Tyler Fullerton. From: Garrett, Philip (MAN-Corporate) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 11:14 AM To: Tyler; modperl@perl.apache.org Subject: RE: Using ENV{'TZ'} in mod_perl

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Garrett, Philip \(MAN-Corporate\)
Tyler Fullerton wrote: If I have the following script: www.somewhere.com/e3/datetz.cgi (where e3 is using PerlRun) that does the following: $ENV{'TZ'} = 'US/Eastern'; POSIX::tzset(); my @time = localtime(); my $time = time(); $ENV{'TZ'} = 'US/Pacific'; POSIX::tzset(); # I would

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
PROTECTED] Sent: Tuesday, October 03, 2006 12:30 PM To: Tyler; modperl@perl.apache.org Subject: RE: Using ENV{'TZ'} in mod_perl Tyler Fullerton wrote: If I have the following script: www.somewhere.com/e3/datetz.cgi (where e3 is using PerlRun) that does the following: $ENV{'TZ'} = 'US

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Garrett, Philip \(MAN-Corporate\)
Tyler wrote: Another thing I just noticed is that you ran your tests under Apache::PerlRun, my mod_perl installation is using as its PerlResponseHandler ModPerl::PerlRun. What's the difference between the two? Apache::PerlRun is the mod_perl 1 module, ModPerl::PerlRun is for mod_perl 2.

Using ENV{'TZ'} in mod_perl

2006-09-20 Thread Tyler
Hello, I have a script that use to use the value in the environment variable ENV{TZ} to modify the output of the perl builtin localtime. In other words, Id do something like this: $ENV{TZ} = US/Eastern; @time = localtime(); This use to give me the localtime in whatever timezone

RE: Using ENV{'TZ'} in mod_perl

2006-09-20 Thread Garrett, Philip \(MAN-Corporate\)
If you're using a perl compiled with thread support, you'll need to call POSIX::tzset() after setting $ENV{TZ}. From: Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 2:09 PMTo: modperl@perl.apache.orgSubject: Using ENV{'TZ'} in mod_perl Hello, I