JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://cdn.datatables.net/s/dt/jq-2.1.4,dt-1.10.10,r-2.0.0/datatables.min.css">
<script src="https://cdn.datatables.net/s/dt/jq-2.1.4,dt-1.10.10,r-2.0.0/datatables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.10/sorting/datetime-moment.js"></script>
<table id="deaths" class="display" width="100%"></table>
JavaScript
$(document).ready(function() {
$('#deaths').DataTable( {
"ajax": {
url: "http://gaming.adduce.co.nz:8888/getPlayerKillsHistory",
cache: true,
data: { ids: '76561198061378579' },
dataSrc: 'PlayersKillsHistory.0.76561198061378579.deaths'
},
searching:false,
paging:false,
responsive:true,
columnDefs: [
{"type":"html","targets":0},
{"type":"unix","targets":1,"render": function (data, type, full, meta) {return moment.utc(data, "x").toISOString().replace(/T/, ' Time: ').replace(/Z/, '');}},
{"type":"html","targets":2}
],
columns: [{ "title": "Killer Steam",
"data": "idKiller"
},
{"title": "Date/Time",
"data": "dateTime",
"type": "unix"
},
{ "title": "Killer Name",
"data": "killerName"
}]
});
});