Comment 1 for bug 347303

Revision history for this message
jsteel (jon-steel) wrote :

The following works:

use POSIX;
$ENV{TZ} = "UTC";
#my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
my $time = `date`;
print "$time\n";
$ENV{TZ} = "US/Eastern";
my $time = `date`;
#my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
print "$time\n";

And I ran the code that doesn't work with a source install of perl-5.10.0 and it worked as well. So it looks like its perls POSIX library that is installed by Ubuntu.