You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Denis Banovic <de...@ncm.at> on 2004/04/02 09:48:11 UTC
Localtime DST / TZ question
Hi!
I have a problem with the localtime function under mod_perl.
When I run this script in shell, I get the correct time and Daylight-Saving, but under mod_perl he is always using the local TimeZone of the system. ( Sever is in the US, I'm sitting in Europe )
Here is the script:
#!/usr/bin/perl
use strict;
use Data::Dumper;
$ENV{TZ} = 'CET';
my @array = localtime();
print Dumper (@array);
print "\nDST: $array[8]";
print "TZ: $ENV{TZ}\n";
Can somebody please tell me, how to tell mod_perl to use a different time zone?
SetEnv in httpd.conf brought nothing...
Thanks
Denis
"THINK THE WEB WAY."
---------------------------------------------------
NCM - NET COMMUNICATION MANAGEMENT GmbH
---[ Denis Banovic - CTO
mailto:denis.banovic@ncm.at
---[ Mühlstrasse 4a
AT - 5023 Salzburg
Tel. 0662 / 644 688
---[ Fax: 0662 / 644 688 - 88
http://www.ncm.at
---------------------------------------------------
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html