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:
parent
e12f043860
commit
52c3a85320
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue