MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / formatTimestamp

Function formatTimestamp

web/scripts/ragnar_modern.js:15124–15133  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

15122 if (post.stale) {
15123 addConsoleMessage('A previous post-update run never finished - ignoring its status. '
15124 + 'See data/logs/post_update.log.', 'warning');
15125 }
15126
15127 const commitMatches = !expectedCommit ||
15128 (status.commit && status.commit.startsWith(expectedCommit.slice(0, 8)));
15129 const postDone = !post.state || post.state === 'finished';
15130
15131 if (commitMatches && postDone && sawRestart) {
15132 if (post.outcome === 'failed') {
15133 finish(`⚠️ Update applied, but some post-update steps failed: ${post.failures || 'see data/logs/post_update.log'}`,
15134 'warning', 'Update applied with warnings. Check the log.');
15135 } else {
15136 finish('✅ Update verified - the box is running the new version.', 'success',

Callers 6

updatePwnagotchiUIFunction · 0.70
networkCardHTMLFunction · 0.70
networkRowHTMLFunction · 0.70
updatePwnDiscoveredCardFunction · 0.70
updateTopThreatsListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected