diff --git a/infra/gcb/templates/src/build-status/build-status.html b/infra/gcb/templates/src/build-status/build-status.html index 85142f7f8..abb1f0117 100644 --- a/infra/gcb/templates/src/build-status/build-status.html +++ b/infra/gcb/templates/src/build-status/build-status.html @@ -78,10 +78,7 @@ [[project.name]]
- Last built [[project.finish_time]] - + Last built [[toLocalDate(project.finish_time)]]
@@ -149,6 +146,11 @@ showLog(log) { return log !== ''; } + + toLocalDate(str) { + let date = new Date(str); + return date.toLocaleString(); + } } window.customElements.define(BuildStatus.is, BuildStatus);