Launchpad has imported 3 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=172396.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
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
Bugs, which is
** Changed in: perl (Fedora)
Status: Unknown = Fix Released
--
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
** Also affects: perl (Fedora) via
https://bugzilla.redhat.com/show_bug.cgi?id=172396
Importance: Unknown
Status: Unknown
--
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,
** Changed in: perl (Ubuntu)
Sourcepackagename: None = perl
--
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
** Also affects: perl (Ubuntu Hardy)
Importance: Undecided
Status: New
** Changed in: perl (Ubuntu Hardy)
Milestone: None = ubuntu-8.04.3
** Changed in: perl (Ubuntu Hardy)
Importance: Undecided = Medium
** Changed in: perl (Ubuntu Hardy)
Status: New = Confirmed
--
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
So it looks like its a bug with perl.
perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
When you call localtime for the first time it picks up the ENV{TZ} value
and remembers it. Every time you call localtime after, it will use that
old value for the TZ. The only way to change