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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-07-17 10:35:22 +02:00 committed by Tomas Cohen Arazi
parent fc2dc973f0
commit 0761107a5f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 6 additions and 2 deletions

View File

@ -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 ) {