Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions webroot/js/participantSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -238,4 +238,4 @@ $(document).ready(() => {
(err) => { rotateKeysetsErrorHandler(err, '#rotateKeysetsErrorOutput') });
});
});
});
});