On Thu, Mar 26, 2009 at 12:04:31PM -0000, Steve Peters wrote:
> On Wed, Mar 25, 2009 at 4:13 PM, Launchpad Bug Tracker
> <email address hidden> wrote:
> > perl -e 'use POSIX;
> > $ENV{TZ} = "UTC";
> > my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
> > print "$time\n";
> > $ENV{TZ} = "US/Eastern";
> > my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
> > print "$time\n";'
> >
> > You should get two different times.
> >
> > 2009-03-23 14:15:13 UTC
> > 2009-03-23 10:15:13 EDT
> I can confirm that the Perl distributed with Ubuntu 8.04 has problems.
> This problem, however, appears to be a bug in the Debian/Ubuntu perl.
> I just built the original Perl 5.8.8 and everything worked fine.
> This problem is caused by some Debian/Ubuntu applied patch.
On Thu, Mar 26, 2009 at 12:04:31PM -0000, Steve Peters wrote:
> On Wed, Mar 25, 2009 at 4:13 PM, Launchpad Bug Tracker
> <email address hidden> wrote:
> > perl -e 'use POSIX;
> > $ENV{TZ} = "UTC";
> > my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
> > print "$time\n";
> > $ENV{TZ} = "US/Eastern";
> > my $time = strftime("%Y-%m-%d %H:%M:%S %Z", localtime(time));
> > print "$time\n";'
> >
> > You should get two different times.
> >
> > 2009-03-23 14:15:13 UTC
> > 2009-03-23 10:15:13 EDT
> I can confirm that the Perl distributed with Ubuntu 8.04 has problems.
> This problem, however, appears to be a bug in the Debian/Ubuntu perl.
> I just built the original Perl 5.8.8 and everything worked fine.
> This problem is caused by some Debian/Ubuntu applied patch.
Did you build a threaded version?
This seems to be
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=172396 rt.perl. org/rt3/ /Public/ Bug/Display. html?id= 26136
http://
fixed with
http:// perl5.git. perl.org/ perl.git/ commitdiff/ 8572b25d
in 5.8.9 and 5.10.0.
--
Niko Tyni <email address hidden>