fix: Properly sort the captures even when the system locale could be better.

pull/79/head
Raphaël Vinot 2020-04-08 14:17:38 +02:00
parent 178f14a44a
commit 956baef4ae
1 changed files with 1 additions and 1 deletions

View File

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