Public bug reported:
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.
** Affects: ubuntu
Importance: Undecided
Status: New
--
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