Bugzilla – Attachment 154058 Details for
Bug 34292
Date formatting in checkouts list broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34292: (bug 33804 follow-up) Format "checked out on" date
Bug-34292-bug-33804-follow-up-Format-checked-out-o.patch (text/plain), 2.21 KB, created by
Katrin Fischer
on 2023-07-29 18:15:17 UTC
(
hide
)
Description:
Bug 34292: (bug 33804 follow-up) Format "checked out on" date
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-07-29 18:15:17 UTC
Size:
2.21 KB
patch
obsolete
>From cca19f5906b95f47d8f17f75adf394bf7d7daaad Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 17 Jul 2023 10:35:22 +0200 >Subject: [PATCH] Bug 34292: (bug 33804 follow-up) Format "checked out on" date > >Test plan: > >1) Without applying this patch, issue an item to a patron and > notice that in the 'Checkouts' table the 'Checked out on' > date is of the form YYYY-MM-DD HH:MM:SS. > >2) Apply this patch, restart Plack if necessary. > >3) Refresh the patron 'Checkouts' table: this time the 'Checked > out on' date will observe the setting of your `dateformat` > System Preference. > >4) Extra credit: repeat step 3) for different `dateformat` > settings, each time you should get a 'Checked out on' date > that matches the date format you chose. > >Signed-off-by: Andreas Roussos <a.roussos@dataly.gr> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 4920eccb9d..9836a960d0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -426,7 +426,9 @@ $(document).ready(function() { > }, > { > "iDataSort": 10, // Sort on hidden unformatted issuedate column >- "mDataProp": "issuedate", >+ "mDataProp": function( oObj ) { >+ return $datetime(oObj.issuedate, { no_tz_adjust: true }); >+ } > }, > { > "mDataProp": function ( oObj ) { >@@ -823,7 +825,9 @@ $(document).ready(function() { > }, > { > "iDataSort": 7, // Sort on hidden unformatted issuedate column >- "mDataProp": "issuedate", >+ "mDataProp": function ( oObj ) { >+ return $datetime(oObj.issuedate, { no_tz_adjust: true }); >+ } > }, > { > "mDataProp": function ( oObj ) { >-- >2.30.2
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 34292
:
153523
|
153524
|
153526
|
153559
|
154057
| 154058