Merge #20073 - Fix display of timestamp after inline edit

Pull-request: #20073
Fixes: #20072
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2026-02-05 13:19:22 +01:00
commit f26f370f4a
No known key found for this signature in database
GPG Key ID: 70684F4717D49A31

View File

@ -708,7 +708,10 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid
// remove decimal places if column type not supported
if ((decimals === 0) && ($thisField.attr('data-type').indexOf('time') !== -1)) {
newHtml = newHtml.substring(0, newHtml.indexOf('.'));
var index = newHtml.indexOf('.');
if (index !== -1) {
newHtml = newHtml.substring(0, index);
}
}
// remove additional decimal places