Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-Local CPAN distribution.

Report information
The Basics
Id: 94041
Status: rejected
Priority: 0/
Queue: Time-Local

People
Owner: Nobody in particular
Requestors: david.zokaites [...] carsforsale.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Error in localtime()
Date: Thu, 20 Mar 2014 09:16:14 -0500
To: bug-Time-Local [...] rt.cpan.org
From: David Zokaites <david.zokaites [...] carsforsale.com>
Download (untitled) / with headers
text/plain 792b
Dear Sir or Madam, I was quite surprised to find errors in timelocal(). Please see the attached small Perl program which illustrates the problem. I reproduced the error on 3 versions of Perl running on two different machines: ActiveState This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread Cygwin This is perl 5, version 14, subversion 4 (v5.14.4) built for cygwin-thread-multi MacOS This is perl, v5.10.1 built for darwin-thread-multi-2level Sincerely, David PS Thanks for supporting Perl and timelocal()! Without volunteers like yourself, nothing in the world would happen. -- *David Zokaites *| IT 605-251-0691 *Carsforsale.com**®* *Dealer Support:* 866-388-9778 Support Hours: Mon-Fri 8:30am-5:30pm | Sat 9:00am-3:00pm CST
Download LocalTimeBug.pl
text/x-perl 778b

Message body is not shown because sender requested not to inline it.

Download LocalTimeBug.out
application/octet-stream 37.2k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 965b
On Thu Mar 20 10:16:27 2014, david.zokaites@carsforsale.com wrote: Show quoted text
> Dear Sir or Madam, > > I was quite surprised to find errors in timelocal(). Please see the > attached small Perl program which illustrates the problem. I reproduced > the error on 3 versions of Perl running on two different machines: > ActiveState This is perl 5, version 16, subversion 3 (v5.16.3) built for > MSWin32-x64-multi-thread > Cygwin This is perl 5, version 14, subversion 4 (v5.14.4) built for > cygwin-thread-multi > MacOS This is perl, v5.10.1 built for darwin-thread-multi-2level > > Sincerely, > David > > > PS Thanks for supporting Perl and timelocal()! Without volunteers like > yourself, nothing in the world would happen.
The localtime() function is a builtin provided by Perl. That said, I don't think it has any bugs. I suspect what you're seeing is the result of DST transition in your local time zone. Try using gmtime() and seeing what happens.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.