Subject: | Recurrent event does not intersect indefinite future |
Date: | Tue, 10 Nov 2015 11:41:39 +1100 |
To: | bug-DateTime-Set [...] rt.cpan.org |
From: | Brett Watson <brett.watson [...] gmail.com> |
DateTime-Set-0.3400
on Perl v5.8.8 built for i386-linux-thread-multi (yeah, old)
$hourly = DateTime::Event::Recurrence->hourly;
$next_day = DateTime::Span->from_datetimes(start => DateTime->now, end =>
DateTime->now->add(days => 1));
$future = DateTime::Span->from_datetimes(start => DateTime->now);
ok($next_day->intersects($future), "next day intersects future");
ok($hourly->intersects($next_day), "hourly event intersects next day");
ok($hourly->intersects($future), "hourly event intersects future"); # FAILS!