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 <gmcharlt@gmail.com>
This commit is contained in:
Colin Campbell 2010-02-02 12:51:02 +00:00 committed by Galen Charlton
parent e12f043860
commit 52c3a85320

View file

@ -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);