View | Details | Raw Unified | Return to bug 24159
Collapse All | Expand All

(-)a/Koha/Checkouts.pm (-2 / +8 lines)
Lines 47-53 sub calculate_dropbox_date { Link Here
47
    my $userenv    = C4::Context->userenv;
47
    my $userenv    = C4::Context->userenv;
48
    my $branchcode = $userenv->{branch} // q{};
48
    my $branchcode = $userenv->{branch} // q{};
49
49
50
    my $calendar = Koha::Calendar->new( branchcode => $branchcode );
50
    my $useDaysMode_value = Koha::CirculationRules->get_useDaysMode_effective_value(
51
        {
52
            categorycode => undef,
53
            itemtype     => undef,
54
            branchcode   => $branchcode,
55
        }
56
    );
57
    my $calendar     = Koha::Calendar->new( branchcode => $branchcode, days_mode => $useDaysMode_value );
51
    my $today        = DateTime->now( time_zone => C4::Context->tz() );
58
    my $today        = DateTime->now( time_zone => C4::Context->tz() );
52
    my $dropbox_date = $calendar->addDate( $today, -1 );
59
    my $dropbox_date = $calendar->addDate( $today, -1 );
53
60
54
- 

Return to bug 24159