File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ function loadSiteCallback(result) {
8080function loadAPIKeysCallback ( result ) {
8181 const textToHighlight = '"disabled": true' ;
8282 let resultJson = JSON . parse ( result ) ;
83- resultJson = resultJson . map ( ( item ) => {
84- const created = new Date ( item . created ) . toLocaleString ( ) ;
83+ resultJson = resultJson . map ( ( item ) => {
84+ const created = new Date ( ( item . created ) * 1000 ) . toLocaleString ( ) ; // Convert Unix timestamp in seconds to milliseconds for Date constructor
8585 return { ...item , created } ;
8686 } ) ;
8787 const formatted = prettifyJson ( JSON . stringify ( resultJson ) ) ;
@@ -238,4 +238,4 @@ $(document).ready(() => {
238238 ( err ) => { rotateKeysetsErrorHandler ( err , '#rotateKeysetsErrorOutput' ) } ) ;
239239 } ) ;
240240 } ) ;
241- } ) ;
241+ } ) ;
You can’t perform that action at this time.
0 commit comments