[infra] build status: use locale date format.

This commit is contained in:
Oliver Chang 2017-04-18 16:18:56 -07:00
parent 1829a50342
commit 5c0631d83f
1 changed files with 6 additions and 4 deletions

View File

@ -78,10 +78,7 @@
[[project.name]]
</div>
<div secondary>
Last built [[project.finish_time]]
<template is="dom-if" if="[[!project.success]]">
(failed)
</template>
Last built [[toLocalDate(project.finish_time)]]
</div>
</paper-item-body>
</paper-item>
@ -149,6 +146,11 @@
showLog(log) {
return log !== '';
}
toLocalDate(str) {
let date = new Date(str);
return date.toLocaleString();
}
}
window.customElements.define(BuildStatus.is, BuildStatus);