projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e12f043
)
Bug 4088 Due Date Not formated in checkout response
author
Colin Campbell
<colin.campbell@ptfs-europe.com>
Tue, 2 Feb 2010 12:51:02 +0000
(12:51 +0000)
committer
Galen Charlton
<gmcharlt@gmail.com>
Tue, 2 Feb 2010 23:46:01 +0000
(18:46 -0500)
due date was not being formatted as a timestamp
but being passed as epoch seconds
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/SIP/Sip/MsgType.pm
patch
|
blob
|
history
diff --git
a/C4/SIP/Sip/MsgType.pm
b/C4/SIP/Sip/MsgType.pm
index
1b210ca
..
d0550e3
100644
(file)
--- a/
C4/SIP/Sip/MsgType.pm
+++ b/
C4/SIP/Sip/MsgType.pm
@@
-544,7
+544,11
@@
sub handle_checkout {
$resp .= add_field(FID_PATRON_ID, $patron_id);
$resp .= add_field(FID_ITEM_ID, $item_id);
$resp .= add_field(FID_TITLE_ID, $item->title_id);
- $resp .= add_field(FID_DUE_DATE, $item->due_date);
+ if ($item->due_date) {
+ $resp .= add_field(FID_DUE_DATE, Sip::timestamp($item->due_date));
+ } else {
+ $resp .= add_field(FID_DUE_DATE, q{});
+ }
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);