Bugzilla – Attachment 153526 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), 1.57 KB, created by
Jonathan Druart
on 2023-07-17 08:36:35 UTC
(
hide
)
Description:
Bug 34292: (bug 33804 follow-up) Format "checked out on" date
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-17 08:36:35 UTC
Size:
1.57 KB
patch
obsolete
>From a5f7e78e979f96368f7d096547f450e45490f4e0 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 > >--- > 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 4920eccb9d3..9836a960d0b 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.25.1
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