|Subject:||HTTP::Date problems with dates after 3/12/2014|
|Date:||Mon, 24 Mar 2014 18:22:16 +0000|
This may be a duplicate, or at least related to bug 83803 – but I wanted to add some more information.
My work is on Windows/ActiveState perl, and I use HTTP::Date a lot to parse time and date strings in to seconds, and then in to other date formats.
I find it really useful, and am worried about switching modules or completely updating Perl to solve this issue.
I find that dates after 2014-03-12 return undef when I call str2time on them (at least in the following format):
I can reproduce this on perl 5.8.8 and 5.12.4 (below). I was using an older Time::Local (1.19), but upgrading to current (1.23) didn’t help.
If you know of a fix, I’d love to apply it, or I’ll research if I can make the change in HTTP::Date locally.
D:\Metrics>perl -MHTTP::Date -e "print str2time('3/12/2014 0:00')"
D:\Metrics>perl -MHTTP::Date -e "print str2time('3/13/2014 0:00')"
This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)
Copyright 1987-2010, Larry Wall
Built Jun 20 2011 18:35:25
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
Business Process Consultant
QA & RMS
Community Bank Technology
Tel 505 299-6071
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.