Spaces:
Paused
Paused
fix: add local time display for backup timestamp in renderDashboard function
Browse files460 unmodified lines46146246346446546665 unmodified lines532533534535536537460 unmodified linesvalue: toneBadge(syncStatus.toUpperCase(), syncTone),detail: backupDetail,tone: syncTone,}),renderTile({title: "Keep Awake",65 unmodified lines</section><footer><span class="live">Live</span> status - Health endpoint: <code>/health</code></footer></main></body></html>`;}460 unmodified lines46146246346446546646746846965 unmodified lines535536537538539540541542543544545546547548460 unmodified linesvalue: toneBadge(syncStatus.toUpperCase(), syncTone),detail: backupDetail,tone: syncTone,meta: data.backup?.timestamp? `<span class="local-time" data-iso="${data.backup.timestamp}"></span>`: "",}),renderTile({title: "Keep Awake",65 unmodified lines</section><footer><span class="live">Live</span> status - Health endpoint: <code>/health</code></footer></main><script>document.querySelectorAll('.local-time').forEach(el => {const date = new Date(el.getAttribute('data-iso'));if (!isNaN(date)) {el.textContent = 'At ' + date.toLocaleTimeString();}});</script></body></html>`;}
health-server.js+11