We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 395a071 commit 41df8bbCopy full SHA for 41df8bb
webroot/js/participantSummary.js
@@ -77,16 +77,12 @@ function loadSiteCallback(result) {
77
$('#siteStandardOutput').html(formatted);
78
}
79
80
-function formatUnixDate(unixTime) {
81
- const time = unixTime < 1e12 ? unixTime * 1000 : unixTime;
82
- return time;
83
-}
84
85
function loadAPIKeysCallback(result) {
86
const textToHighlight = '"disabled": true';
87
let resultJson = JSON.parse(result);
88
resultJson = resultJson.map((item) => {
89
- const created = new Date(formatUnixDate(item.created)).toLocaleString();
+ const created = new Date((item.created)*1000).toLocaleString();
90
return { ...item, created };
91
});
92
const formatted = prettifyJson(JSON.stringify(resultJson));
0 commit comments