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

Reply via email to