fix: Missing day in hostnames view

pull/919/head
Raphaël Vinot 2024-05-13 16:07:12 +02:00
parent e7cd9e50fe
commit fff78fb2e9
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
"targets": 0,
"render": function ( data, type, row, meta ) {
let date = new Date(data);
return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2, "0") + '-' + date.toTimeString();
return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2, "0") + '-' + date.getDate().toString().padStart(2, "0") + ' ' + date.toTimeString();
}
}]
});