projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a8bed5
)
Bug 5549 : returns calling wrong format routine on date
author
Colin Campbell
<colin.campbell@ptfs-europe.com>
Thu, 23 Jun 2011 14:13:04 +0000
(15:13 +0100)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 00:25:56 +0000
(13:25 +1300)
We don't have an orm yet
circ/returns.pl
patch
|
blob
|
history
diff --git
a/circ/returns.pl
b/circ/returns.pl
index
cba9141
..
a70b91a
100755
(executable)
--- a/
circ/returns.pl
+++ b/
circ/returns.pl
@@
-179,7
+179,6
@@
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 $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_iso = $today->output('iso');
my $dropboxdate = $calendar->addDate($today, -1);
if ($dotransfer){
# An item has been returned to a branch other than the homebranch, and the librarian has chosen to initiate a transfer
my $dropboxdate = $calendar->addDate($today, -1);
if ($dotransfer){
# An item has been returned to a branch other than the homebranch, and the librarian has chosen to initiate a transfer
@@
-521,7
+520,7
@@
if ($borrower) {
{
my $biblio = GetBiblioFromItemNumber( $item->{'itemnumber'});
push @itemloop, {
{
my $biblio = GetBiblioFromItemNumber( $item->{'itemnumber'});
push @itemloop, {
- duedate =>
output_pref($item->{'date_due'
}),
+ duedate =>
format_sqldatetime($item->{date_due
}),
biblionum => $biblio->{'biblionumber'},
barcode => $biblio->{'barcode'},
title => $biblio->{'title'},
biblionum => $biblio->{'biblionumber'},
barcode => $biblio->{'barcode'},
title => $biblio->{'title'},