[Bug 347303] Re: ENV{TZ} and strftime in perl not working
Rolf Leggewie
347303 at bugs.launchpad.net
Sun Nov 23 15:20:06 UTC 2014
Hardy has seen the end of its life and is no longer receiving any
updates. Marking the Hardy task for this ticket as "Won't Fix".
** Changed in: perl (Ubuntu Hardy)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/347303
Title:
ENV{TZ} and strftime in perl not working
Status in “perl” package in Ubuntu:
New
Status in “perl” source package in Hardy:
Won't Fix
Status in “perl” package in Fedora:
Fix Released
Bug description:
If you run the following:
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
But in Ubuntu 8.04 server (lsb_release -rd =>Description: Ubuntu
8.04.2, Release: 8.04) you instead get
2009-03-23 14:15:40 UTC
2009-03-23 14:15:40 EDT
It does the same thing for almost any timezone you give it. It give
UTC time but labels it as the proper time zone.
This happens on my 8.04 desktop version as well, but not on any 8.10
machines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/347303/+subscriptions
More information about the foundations-bugs
mailing list