mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
📅 Remove +timezone offset from First/:ast session columns #695
This commit is contained in:
@@ -626,7 +626,11 @@ function initializeDatatable (status) {
|
|||||||
// Dates
|
// Dates
|
||||||
{targets: [mapIndx(6), mapIndx(7)],
|
{targets: [mapIndx(6), mapIndx(7)],
|
||||||
'createdCell': function (td, cellData, rowData, row, col) {
|
'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
|
// Random MAC
|
||||||
|
|||||||
Reference in New Issue
Block a user