Lines 55-63
sub calculate_dropbox_date {
Link Here
|
55 |
branchcode => $branchcode, |
55 |
branchcode => $branchcode, |
56 |
} |
56 |
} |
57 |
); |
57 |
); |
58 |
my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => $daysmode ); |
58 |
my $calendar = Koha::DiscreteCalendar->new( branchcode => $branchcode, days_mode => $daysmode ); |
59 |
my $today = dt_from_string; |
59 |
my $today = dt_from_string; |
60 |
my $dropbox_date = $calendar->addDuration( $today, -1 ); |
60 |
my $dropbox_date = $calendar->addDuration( $today, -1 ); |
|
|
61 |
my $dateInfo = $calendar->get_date_info($dropbox_date); |
62 |
$dropbox_date = dt_from_string($dateInfo->{date} ." ". $dateInfo->{close_hour}, 'iso', C4::Context->tz()); |
61 |
|
63 |
|
62 |
return $dropbox_date; |
64 |
return $dropbox_date; |
63 |
} |
65 |
} |
64 |
- |
|
|