develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #132897] timegm should be called with 4-digit year

From:
bitcardbmw@lsmod.de via RT
Date:
January 25, 2019 05:52
Subject:
[perl #132897] timegm should be called with 4-digit year
Message ID:
rt-4.0.24-29290-1548306991-972.132897-15-0@perl.org
On Thu, 22 Feb 2018 06:58:35 -0800, jkeenan wrote:
> On Thu, 22 Feb 2018 10:17:25 GMT, perlbugbmw@lsmod.de wrote:
> > --- perl-5.26.1.orig/pod/perlport.pod
> > +++ perl-5.26.1/pod/perlport.pod
> >  @@ -673 +673 @@
> > -    my $offset = timegm(0, 0, 0, 1, 0, 70);
> > +    my $offset = timegm(0, 0, 0, 1, 0, 1970);
> > 
> 
> Pinging Dave Rolsky, upstream maintainer for Time::Local:
> 
> Dave, okay to make this change in 'perlport'?

The Time::Local docs said, it should be this way, because 2-digit dates reference the rolling "current century"

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



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