Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Format-Strptime CPAN distribution.

Report information
The Basics
Id: 80138
Status: rejected
Priority: 0/
Queue: DateTime-Format-Strptime

People
Owner: Nobody in particular
Requestors: james [...] nontrivial.net
Cc:
AdminCc:

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



Subject: Apparent Bug Parsing December Dates
Date: Thu, 11 Oct 2012 13:55:05 -0500
To: bug-datetime-format-strptime [...] rt.cpan.org
From: James D Bearden <james [...] nontrivial.net>
Hello, I am trying to using version 1.5000 of DateTime::Format::Strptime to parse dates, but I can't seem to parse any dates from 12/13 through 12/31. The year doesn't seem to matter. Any date before 12/13 seems to work fine. For example, $dt gets set to undef when I try: my $Pattern = '%d/%m/%Y %O'; my $String = '12/15/2012 America/Chicago'; my $strp = DateTime::Format::Strptime->new( pattern => $Pattern ); my $dt = $strp->parse_datetime($String); Am I crazy, am I doing something wrong, or is this a bug? If it is a bug, can you please suggest a fix or work around? -- James D Bearden Nontrivial Solutions, LLC http://www.nontrivial.net mailto://james@nontrivial.net (405) 593-8098
Subject: Re: [rt.cpan.org #80138] AutoReply: Apparent Bug Parsing December Dates
Date: Thu, 11 Oct 2012 14:15:30 -0500
To: bug-DateTime-Format-Strptime [...] rt.cpan.org
From: James D Bearden <james [...] nontrivial.net>
Whoops, turns out I'm crazy. I was entering the dates as MM/DD/YYYY but using the pattern DD/MM/YYYY. Nothing to see here, please move along. On 10/11/2012 01:54 PM, Bugs in DateTime-Format-Strptime via RT wrote: Show quoted text
> my $Pattern = '%d/%m/%Y %O'; > my $String = '12/15/2012 America/Chicago'; > my $strp = DateTime::Format::Strptime->new( pattern => $Pattern ); > my $dt = $strp->parse_datetime($String);
-- James D Bearden Nontrivial Solutions, LLC http://www.nontrivial.net mailto://james@nontrivial.net (405) 593-8098