Don't show seconds in users / libraries total duration

This commit is contained in:
JonnyWong16 2021-06-05 10:29:09 -07:00
parent fcc70a9b74
commit 98b4fa41a7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ libraries_list_table_options = {
"data": "duration", "data": "duration",
"createdCell": function (td, cellData, rowData, row, col) { "createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') { if (cellData !== null && cellData !== '') {
$(td).html(humanDuration(cellData, 'dhm', 's')); $(td).html(humanDuration(cellData, 'dhm', 's', false));
} }
}, },
"searchable": false, "searchable": false,

View file

@ -208,7 +208,7 @@ users_list_table_options = {
"data": "duration", "data": "duration",
"createdCell": function (td, cellData, rowData, row, col) { "createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') { if (cellData !== null && cellData !== '') {
$(td).html(humanDuration(cellData, 'dhm', 's')); $(td).html(humanDuration(cellData, 'dhm', 's', false));
} }
}, },
"searchable": false, "searchable": false,