From 302a687d41e439291c4b6df55ba52b3e5b541a16 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Thu, 6 Jun 2024 18:58:09 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=85=20Remove=20+timezone=20offset=20fr?= =?UTF-8?q?om=20First/:ast=20session=20columns=20#695?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/devices.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/front/devices.php b/front/devices.php index 55bedef9..a644946b 100755 --- a/front/devices.php +++ b/front/devices.php @@ -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