From 52c3a853207542c77a87be13f7cb3358ef204af6 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 2 Feb 2010 12:51:02 +0000 Subject: [PATCH] Bug 4088 Due Date Not formated in checkout response due date was not being formatted as a timestamp but being passed as epoch seconds Signed-off-by: Galen Charlton --- C4/SIP/Sip/MsgType.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 1b210ca1cc..d0550e356b 100644 --- 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); -- 2.39.5