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 protected]> 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
http://rt.perl.org/rt3//Public/Bug/Display.html?id=26136
fixed with
http://perl5.git.perl.org/perl.git/commitdiff/8572b25d
in 5.8.9 and 5.10.0.
--
Niko Tyni [email protected]
--
ENV{TZ} and strftime in perl not working
https://bugs.launchpad.net/bugs/347303
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs