Merge branch 'bug_9211' into 3.12-master

This commit is contained in:
Jared Camins-Esakov 2013-01-24 09:58:41 -05:00
commit af87780385

View file

@ -247,6 +247,13 @@ sub days_between {
my $start_dt = shift;
my $end_dt = shift;
if ( $start_dt->compare($end_dt) > 0 ) {
# swap dates
my $int_dt = $end_dt;
$end_dt = $start_dt;
$start_dt = $int_dt;
}
# start and end should not be closed days
my $days = $start_dt->delta_days($end_dt)->delta_days;