mirror of https://github.com/google/oss-fuzz.git
[infra] build status: use locale date format.
This commit is contained in:
parent
1829a50342
commit
5c0631d83f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue