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:
parent
968c5865e7
commit
47443858ce
2 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue