Bug 1433313 - DateTime::Set->from_recurrence() erroneously returns empty set in particular cases
Summary: DateTime::Set->from_recurrence() erroneously returns empty set in particular ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: perl-TimeDate
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-17 11:37 UTC by fixfax1703
Modified: 2024-07-09 02:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-09 02:04:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
This script will check a number of input combinations and report on stdout those that trigger the bug. (819 bytes, application/x-perl)
2017-03-17 11:37 UTC, fixfax1703
no flags Details

Description fixfax1703 2017-03-17 11:37:09 UTC
Created attachment 1264008 [details]
This script will check a number of input combinations and report on stdout those that trigger the bug.

Description of problem:

The following call of DateTime::Set->from_recurrence() returns an empty set for particular combinations of $dt_start and $dt_end:

my $ds = DateTime::Set->from_recurrence(
    recurrence => sub {
        return $_[0]->add( weeks => 1 );
    },
    span => DateTime::Span -> from_datetimes (
        start => $dt_start,
        end => $dt_end
    )
) ;


Version-Release number of selected component (if applicable):

perl-DateTime-Set-0.33-3.el7.noarch


How reproducible:

always


Steps to Reproduce:

Run attached script (!contains infinite loop - kill it as appropriate). 

Stdout will show the start/end dates triggering the bug 

Stderr will show the tested input combinations


Actual results:

See stdout


Expected results:

Nothing should be printed to stdout


Additional info:

Comment 1 Troy Dawson 2024-07-09 02:04:13 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.


Note You need to log in before you can comment on or make changes to this bug.