Skip to content

Commit 41df8bb

Browse files
authored
Back to first draft
1 parent 395a071 commit 41df8bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

webroot/js/participantSummary.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,12 @@ function loadSiteCallback(result) {
7777
$('#siteStandardOutput').html(formatted);
7878
}
7979

80-
function formatUnixDate(unixTime) {
81-
const time = unixTime < 1e12 ? unixTime * 1000 : unixTime;
82-
return time;
83-
}
8480

8581
function loadAPIKeysCallback(result) {
8682
const textToHighlight = '"disabled": true';
8783
let resultJson = JSON.parse(result);
8884
resultJson = resultJson.map((item) => {
89-
const created = new Date(formatUnixDate(item.created)).toLocaleString();
85+
const created = new Date((item.created)*1000).toLocaleString();
9086
return { ...item, created };
9187
});
9288
const formatted = prettifyJson(JSON.stringify(resultJson));

0 commit comments

Comments
 (0)