diff --git a/src/main.js b/src/main.js
index bf127b3..926e89a 100644
--- a/src/main.js
+++ b/src/main.js
@@ -459,6 +459,9 @@ function buildUI(state) {
History: ${CONFIG.historyDuration}s |
Running
+
+ |
+
Waiting for data...
@@ -721,6 +724,16 @@ async function init() {
.getElementById("pause-btn")
.addEventListener("click", () => togglePause(state));
+ function updateClocks() {
+ const now = new Date();
+ const utc = now.toISOString().replace(/\.\d{3}Z$/, "Z");
+ const local = now.toLocaleString("sv-SE", { hour12: false });
+ document.getElementById("clock-local").textContent = "Local: " + local;
+ document.getElementById("clock-utc").textContent = "UTC: " + utc;
+ }
+ updateClocks();
+ setInterval(updateClocks, 1000);
+
tick(state);
setInterval(() => tick(state), CONFIG.updateInterval);