set timestamp from 1st log item
3clyp50 committed
Jan 19, 2026 at 04:20 UTC
4bb291f4fae426fa5e7080f182fffe8e2de989f2
1 file changed
+8
-5
webui/js/messages.js
+8
-5
@@ -1289,13 +1289,16 @@ function addProcessStep(group, id, type, heading, content, kvps, timestamp = nul
1289
if (timestamp) {
1290
step.setAttribute("data-timestamp", timestamp);
1291
1292
- // Set group start time from first step
1292
+ // Set group start time from first log item
1293
if (!group.getAttribute("data-start-timestamp")) {
1294
group.setAttribute("data-start-timestamp", timestamp);
1295
- // Update header with formatted datetime
1296
- const timestampEl = group.querySelector(".group-timestamp");
1297
- if (timestampEl) {
1298
- timestampEl.textContent = formatDateTime(timestamp);
1295
+ // Update header time metric immediately
1296
+ const timeMetricEl = group.querySelector(".metric-time .metric-value");
1297
+ if (timeMetricEl) {
1298
+ const date = new Date(parseFloat(timestamp) * 1000);
1299
+ const hours = String(date.getHours()).padStart(2, "0");
1300
+ const minutes = String(date.getMinutes()).padStart(2, "0");
1301
+ timeMetricEl.textContent = `${hours}:${minutes}`;
1302
}
1303
}
1304
}