Add timezone and mouseover to build-status page (#1235)

* Add timezone and mouseover to build-status page
This commit is contained in:
Kevin Lubick 2018-03-12 16:25:29 -04:00 committed by jonathanmetzman
parent fdbab0f080
commit 33bc7ae7e2
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}