From 33bc7ae7e2f3e0b733e916eff412af5de2bf74a1 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Mon, 12 Mar 2018 16:25:29 -0400 Subject: [PATCH] Add timezone and mouseover to build-status page (#1235) * Add timezone and mouseover to build-status page --- infra/gcb/templates/src/build-status/build-status.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/gcb/templates/src/build-status/build-status.html b/infra/gcb/templates/src/build-status/build-status.html index abb1f0117..1c8b576d1 100644 --- a/infra/gcb/templates/src/build-status/build-status.html +++ b/infra/gcb/templates/src/build-status/build-status.html @@ -77,7 +77,7 @@ [[project.name]] -
+
Last built [[toLocalDate(project.finish_time)]]
@@ -149,7 +149,9 @@ toLocalDate(str) { let date = new Date(str); - return date.toLocaleString(); + let ds = date.toString(); + let timezone = ds.substring(ds.indexOf("(")); + return date.toLocaleString() + " " + timezone; } }