📅 Remove +timezone offset from First/:ast session columns #695

This commit is contained in:
jokob-sk
2024-06-06 18:58:09 +10:00
parent 6133c2c937
commit 302a687d41

View File

@@ -626,7 +626,11 @@ function initializeDatatable (status) {
// Dates
{targets: [mapIndx(6), mapIndx(7)],
'createdCell': function (td, cellData, rowData, row, col) {
$(td).html (translateHTMLcodes (cellData));
var result = cellData.toString(); // Convert to string
if (result.includes("+")) { // Check if timezone offset is present
result = result.split('+')[0]; // Remove timezone offset
}
$(td).html (translateHTMLcodes (result));
} },
// Random MAC