@@ -, +, @@ closing hours --- Koha/Checkouts.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/Koha/Checkouts.pm +++ a/Koha/Checkouts.pm @@ -55,9 +55,11 @@ sub calculate_dropbox_date { branchcode => $branchcode, } ); - my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => $daysmode ); + my $calendar = Koha::DiscreteCalendar->new( branchcode => $branchcode, days_mode => $daysmode ); my $today = dt_from_string; my $dropbox_date = $calendar->addDuration( $today, -1 ); + my $dateInfo = $calendar->get_date_info($dropbox_date); + $dropbox_date = dt_from_string($dateInfo->{date} ." ". $dateInfo->{close_hour}, 'iso', C4::Context->tz()); return $dropbox_date; } --