diff --git a/webroot/js/participantSummary.js b/webroot/js/participantSummary.js index 2a7d011e..2bd06845 100644 --- a/webroot/js/participantSummary.js +++ b/webroot/js/participantSummary.js @@ -80,8 +80,8 @@ function loadSiteCallback(result) { function loadAPIKeysCallback(result) { const textToHighlight = '"disabled": true'; let resultJson = JSON.parse(result); - resultJson = resultJson.map((item) => { - const created = new Date(item.created).toLocaleString(); + resultJson = resultJson.map((item) => { + const created = new Date((item.created)*1000).toLocaleString(); // Convert Unix timestamp in seconds to milliseconds for Date constructor return { ...item, created }; }); const formatted = prettifyJson(JSON.stringify(resultJson)); @@ -238,4 +238,4 @@ $(document).ready(() => { (err) => { rotateKeysetsErrorHandler(err, '#rotateKeysetsErrorOutput') }); }); }); -}); \ No newline at end of file +});