aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx
index 757ddca..8bd6f88 100644
--- a/mod/mod-builds.cxx
+++ b/mod/mod-builds.cxx
@@ -352,6 +352,8 @@ handle (request& rq, response& rs)
else
s << DIV_COUNTER (count, "Build", "Builds");
+ timestamp now (timestamp::clock::now ());
+
// Enclose the subsequent tables to be able to use nth-child CSS selector.
//
s << DIV;
@@ -364,9 +366,10 @@ handle (request& rq, response& rs)
assert (b.machine);
string ts (butl::to_string (b.timestamp,
- "%Y-%m-%d %H:%M:%S%[.N] %Z",
+ "%Y-%m-%d %H:%M:%S %Z",
true,
- true));
+ true) +
+ " (" + butl::to_string (now - b.timestamp, false) + " ago)");
s << TABLE(CLASS="proplist build")
<< TBODY