mirror of https://github.com/google/oss-fuzz.git
Add timezone and mouseover to build-status page (#1235)
* Add timezone and mouseover to build-status page
This commit is contained in:
parent
fdbab0f080
commit
33bc7ae7e2
|
@ -77,7 +77,7 @@
|
|||
</template>
|
||||
[[project.name]]
|
||||
</div>
|
||||
<div secondary>
|
||||
<div secondary title$="Last built [[toLocalDate(project.finish_time)]]">
|
||||
Last built [[toLocalDate(project.finish_time)]]
|
||||
</div>
|
||||
</paper-item-body>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue