develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #24582] localtime returns gmtime instead of localtime

From:
James E Keenan via RT
Date:
June 19, 2013 23:50
Subject:
[perl #24582] localtime returns gmtime instead of localtime
Message ID:
rt-3.6.HEAD-2552-1371685847-1025.24582-15-0@perl.org
On Sat May 26 19:31:38 2012, tonyc wrote:
> On Sat, May 26, 2012 at 06:58:29PM -0700, James E Keenan via RT wrote:
> > > So it seems that (Cygwin) Perl v5.8.2 in my environment totally
> > > disregards the TZ setting, whereas Perl v5.8.0 correctly
> interprets it.
> > >
> > > Thank you for your time looking into this problem.
> >
> > Is there anyone currently building Cygwin Perl who could review the
> > issues raised in this older ticket?
> 
> Building blead:
> 
> tony@phobos ~/dev/perl/git/perl
> $ ./perl -Ilib -le 'print scalar localtime'
> Sun May 27 12:27:07 2012
> 
> tony@phobos ~/dev/perl/git/perl
> $ TZ=WEST-1 ./perl -Ilib -le 'print scalar localtime'
> Sun May 27 03:27:17 2012
> 
> tony@phobos ~/dev/perl/git/perl
> $ ./perl -Ilib -le 'print scalar gmtime'
> Sun May 27 02:27:31 2012
> 
> tony@phobos ~/dev/perl/git/perl
> $ TZ=EST ./perl -Ilib -le 'print scalar localtime'
> Sat May 26 21:29:06 2012
> 
> tony@phobos ~/dev/perl/git/perl
> $ ./perl -v
> 
> This is perl 5, version 17, subversion 0 (v5.17.0-17-gf0ccce9) built
> for cygwin-thread-multi-64int
> 
> Copyright 1987-2012, Larry Wall
> 
> Perl may be copied only under the terms of either the Artistic License
> or the
> GNU General Public License, which may be found in the Perl 5 source
> kit.
> 
> Complete documentation for Perl, including FAQ lists, should be found
> on
> this system using "man perl" or "perldoc perl".  If you have access to
> the
> Internet, point your browser at http://www.perl.org/, the Perl Home
> Page.
> 
> So if I understand the problems described, it's fixed.
> 
> Tony
> 

No one has disputed Tony's judgment in the year since the last post in
this RT.  So I'm closing it now.

Thank you very much.
Jim Keenan



---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=24582



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About