This is a multi-part message in MIME format.

------_=_NextPart_001_01C6DCE2.163BAC0B
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

If you're using a perl compiled with thread support, you'll need to call
POSIX::tzset() after setting $ENV{TZ}.
=20


________________________________

From: Tyler [mailto:tfullert@webmetrics.com]=20
Sent: Wednesday, September 20, 2006 2:09 PM
To: modperl@perl.apache.org
Subject: Using ENV{'TZ'} in mod_perl
=09
=09

Hello,

=09
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, I'd do something like this:

=20

$ENV{'TZ'} =3D 'US/Eastern';

@time =3D localtime();

=20

This use to give me the localtime in whatever timezone was in
ENV{'TZ'}. However, I have since then switched to using mod_perl (more
specifically the PerlRun module) and now this code no longer works (i.e.
$ENV{'TZ'} doesn't have any affect on localtime). I've tried various
modifications to my mod_perl install (such as configuring PerlPassEnv,
etc) but still can't get it to work. =20

=20

Does anyone have any recommendations, or thoughts?

=20

Thank you in advance,

Tyler Fullerton.

=20


------_=_NextPart_001_01C6DCE2.163BAC0B
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


=3D=20
"urn:schemas-microsoft-comfficeffice" xmlns:w =3D=20
"urn:schemas-microsoft-comffice:word">
charset=3Dus-ascii">




face=3DArial=20
color=3D#0000ff size=3D2>If you're using a perl compiled with thread =
support, you'll=20
need to call POSIX::tzset() after setting $ENV{TZ}.

face=3DArial=20
color=3D#0000ff size=3D2>
 






From: Tyler =
[mailto:tfullert@webmetrics.com]=20

Sent: Wednesday, September 20, 2006 2:09 PM
To:=20
modperl@perl.apache.org
Subject: Using ENV{'TZ'} in=20
mod_perl




style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Hello,>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">
I have a script that =
use to=20
use the value in the environment variable ENV{‘TZ’} to =
modify the output of=20
the perl builtin localtime.  In other words, I’d do =
something like=20
this:>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">$ENV{‘TZ’} =
=3D=20
‘US/Eastern’;>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">@time =3D=20
localtime();>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">This use to give me the =
localtime=20
in whatever timezone was in ENV{‘TZ’}.  However, I =
have since then=20
switched to using mod_perl (more specifically the PerlRun module) and =
now this=20
code no longer works (i.e. $ENV{‘TZ’} doesn’t have =
any affect on=20
localtime).  I’ve tried various modifications to my =
mod_perl install=20
(such as configuring PerlPassEnv, etc) but still can’t get it to =
work. =20
>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Does anyone have any=20
recommendations, or thoughts?>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank you in=20
advance,>>


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Tyler=20
Fullerton.
>>


style=3D"FONT-SIZE: =
12pt">>


>

------_=_NextPart_001_01C6DCE2.163BAC0B--