Bug 23838: Use $datetime formater

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-03-18 14:53:41 +00:00 committed by Tomas Cohen Arazi
parent 968c5865e7
commit 47443858ce
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 1 deletions

View file

@ -161,6 +161,7 @@
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'patron-renewal-modal.inc' %]
[% INCLUDE 'patron-renewal-modal-strings.inc' %]
[% INCLUDE 'js-date-format.inc' %]
[% Asset.js("js/patron-renewal-modal.js") | $raw %]
<script id="js">
$(document).ready(function() {

View file

@ -20,6 +20,6 @@ $(document).ready(function(){
});
});
function createLi(renewal) {
return '<li><span style="font-weight:bold">' + renewal.timestamp + '</span> ' + renewed + ' <span style="font-weight:bold">' + renewal.renewer.firstname + ' ' + renewal.renewer.surname + '</li>';
return '<li><span style="font-weight:bold">' + $datetime(renewal.timestamp) + '</span> ' + renewed + ' <span style="font-weight:bold">' + renewal.renewer.firstname + ' ' + renewal.renewer.surname + '</li>';
}
});