Bug 28854: (follow-up) Restore last seen date formatting

We lost the date formatting somewhere along the line with rebases, this
patch restores the call to $date for last seen date.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-06-27 14:31:04 +01:00 committed by Tomas Cohen Arazi
parent 7d0cd2ebae
commit b8a2fdcd48
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1699,7 +1699,7 @@ Note that permanent location is a code, and location may be an authval.
"orderable": true,
"render": function(data, type, row, meta) {
if ( row.lost_status == bundle_lost_value ) {
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>';
let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
if ( row.return_claim ) {
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>';
}