Skip Menu |

This queue is for tickets about the Date-Manip CPAN distribution.

Report information
The Basics
Id: 67144
Status: resolved
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: FBRIERE [...] cpan.org
Cc:
AdminCc:

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



Subject: Date::Manip::Recur->dates() fails when passed strings
Date::Manip::Recur(3pm) states, about dates(): $start and $end are either undef, or dates which can be used to limit the set of dates passed back (they can be Date::Manip::Date objects or strings that can be parsed). However, any attempt to pass a string fails: $ perl -MDate::Manip -le '$r = new Date::Manip::Recur; $r->parse("0:0:0:1:0:0:0:0"); print $r->dates("2011-03-01", "2011-03-10");' Can't call method "err" without a package or object reference at /usr/share/perl5/Date/Manip/Recur.pm line 913.
One problem in your example... you've got a malformed recurrence (there are only 7 fields in a valid recurrence, and you've got 8). Since (after correcting this), I still got an error, my guess is that this is simply a typo in your sample script. In any case, I did find a problem with the way recurrences were being handled when you passed in alternate ranges. I've corrected that and it'll be in the new release. If you need a fixed version before then, please email me at sbeck@cpan.org and I'll get you a pre-release.
Subject: Re: [rt.cpan.org #67144] Date::Manip::Recur->dates() fails when passed strings
Date: Fri, 1 Apr 2011 21:38:31 -0400
To: Sullivan Beck via RT <bug-Date-Manip [...] rt.cpan.org>
From: Frédéric Brière <fbriere [...] fbriere.net>
On Fri, Apr 01, 2011 at 01:22:21PM -0400, Sullivan Beck via RT wrote: Show quoted text
> One problem in your example... you've got a malformed recurrence (there > are only 7 fields in a valid recurrence, and you've got 8). Since
Oops! I'm still coming to grips with Date::Manip, so my shell history is full of such attempts. :) Show quoted text
> If you need a fixed version before then, please email me at > sbeck@cpan.org and I'll get you a pre-release.
Thanks! I just worked around it with parse(scalar localtime) in the meantime. -- aphorism, n.: A concise, clever statement. afterism, n.: A concise, clever statement you don't think of until too late. -- James Alexander Thom
Subject: Re: [rt.cpan.org #67144] Date::Manip::Recur->dates() fails when passed strings
Date: Fri, 1 Apr 2011 21:39:45 -0400
To: "fbriere [...] fbriere.net via RT" <bug-Date-Manip [...] rt.cpan.org>
From: Frédéric Brière <fbriere [...] fbriere.net>
On Fri, Apr 01, 2011 at 09:38:41PM -0400, fbriere@fbriere.net via RT wrote: Show quoted text
> Thanks! I just worked around it with parse(scalar localtime) in the > meantime.
Never mind, I got my bug reports confused. :) -- Breeding rabbits is a hare raising experience.