Bug 5549 : Fix a couple of date issues from testing

This commit is contained in:
Colin Campbell 2011-06-22 17:30:34 +01:00 committed by Chris Cormack
parent c82d114f1e
commit 4913d3a1d7
2 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ use C4::Output;
use C4::Circulation; # GetBiblioIssues
use C4::Biblio; # GetBiblio GetBiblioFromItemNumber
use C4::Dates qw/format_date/;
use C4::Search; # enabled_staff_search_views
use Koha::DateUtils;
my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(

View File

@ -177,7 +177,7 @@ my $canceltransfer = $query->param('canceltransfer');
my $dest = $query->param('dest');
my $calendar = Koha::Calendar->new( branchcode => $userenv_branch );
#dropbox: get last open day (today - 1)
my $today = DateTime=>now( time_zone => C4::Context->tz());
my $today = DateTime->now( time_zone => C4::Context->tz());
#my $today_iso = $today->output('iso');
my $dropboxdate = $calendar->addDate($today, -1);
if ($dotransfer){