Bugzilla – Attachment 102775 Details for
Bug 24999
Date not correctly formatted in claims table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24999: Date not correctly formatted in claims table
Bug-24999-Date-not-correctly-formatted-in-claims-t.patch (text/plain), 1.56 KB, created by
Katrin Fischer
on 2020-04-12 21:44:14 UTC
(
hide
)
Description:
Bug 24999: Date not correctly formatted in claims table
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-12 21:44:14 UTC
Size:
1.56 KB
patch
obsolete
>From ff5723b6d034e6edbe893242604b581eab9f884e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Nazl=C4=B1=20=C3=87etin?= <nazli@devinim.com.tr> >Date: Mon, 30 Mar 2020 14:07:45 +0000 >Subject: [PATCH] Bug 24999: Date not correctly formatted in claims table > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index e18c2a24c9..52af3e99d3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -940,7 +940,8 @@ $(document).ready(function() { > "mDataProp": function ( oObj ) { > if ( ! oObj.resolution ) return ""; > >- let desc = '<strong>' + oObj.resolution_data.lib + '</strong> on <i>' + oObj.resolved_on + '</i>'; >+ let resolved_on = new Date( oObj.resolved_on ); >+ let desc = '<strong>' + oObj.resolution_data.lib + '</strong> on <i>' + resolved_on.toLocaleDateString() + '</i>'; > if (oObj.resolved_by_data) desc += ' by <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + oObj.resolved_by_data.borrowernumber + '">' + ( oObj.resolved_by_data.firstname || "" ) + ( oObj.resolved_by_data.surname || "" ) + '</a>'; > return desc; > } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24999
:
102084
|
102129
| 102775