From ff5723b6d034e6edbe893242604b581eab9f884e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nazl=C4=B1=20=C3=87etin?= Date: Mon, 30 Mar 2020 14:07:45 +0000 Subject: [PATCH] Bug 24999: Date not correctly formatted in claims table Signed-off-by: Sally Signed-off-by: Katrin Fischer --- 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 = '' + oObj.resolution_data.lib + ' on ' + oObj.resolved_on + ''; + let resolved_on = new Date( oObj.resolved_on ); + let desc = '' + oObj.resolution_data.lib + ' on ' + resolved_on.toLocaleDateString() + ''; if (oObj.resolved_by_data) desc += ' by ' + ( oObj.resolved_by_data.firstname || "" ) + ( oObj.resolved_by_data.surname || "" ) + ''; return desc; } -- 2.11.0