[Koha-bugs] [Bug 8486] Critical error in Koha::Calendar::days_between calculation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 3 12:57:38 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8486

--- Comment #16 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
Sorry !  you should have to read this :
if(DateTime->compare( $start_dt, $end_dt ) > -1){
    $days = $days->inverse;
} else {
for (my $dt = $start_dt->clone();
       $dt <= $end_dt;
       $dt->add(days => 1)
    ) {
        if ($self->is_holiday($dt)) {
            $days--;
         }
    }
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list