Skip Menu |
 

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

Report information
The Basics
Id: 118399
Status: open
Priority: 0/
Queue: DateTime-Format-ICal

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

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



Subject: DateTime::Format::ICal->parse_recurrence() dies when the rrule has both BYMONTH and BYMONTHDAY
Download (untitled) / with headers
text/plain 788b
Example: ``` use DateTime::Format::ISO8601; use DateTime::Format::ICal; my $range_start = "2016-12-18"; my $range_end = "2017-01-08"; my $interval = 'INTERVAL=5;FREQ=MONTHLY;BYMONTH=3,6,9,1;BYMONTHDAY=2'; my $format = DateTime::Format::ISO8601->new; my $start_dt = $format->parse_datetime($range_start); my $end_dt = $format->parse_datetime($range_end); my $set = DateTime::Format::ICal->parse_recurrence( recurrence => $interval, dtstart => $start_dt, dtend => $end_dt ); my $iter = $set->iterator; while ( my $dt = $iter->next ) { print "$dt\n"; } ``` Run that and parse_recurrence() will die w/: ```Can't call method "is_infinite" on an undefined value at …/DateTime/Event/Recurrence.pm line 822.``` Take out either BYMONTH and BYMONTHDAY and it will be fine.
That is w/ DateTime::Format::ICal v0.09 and DateTime::Event::Recurrence v0.18 FWiW.
This module could really use a new maintainer. I don't really use it. Are you interested?


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.