Commit cb5d51a5 authored by Daniele Venzano's avatar Daniele Venzano

Update moment JS library and show locale-aware timestamps in the execution details page

parent c6c86a44
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -5,10 +5,13 @@ ...@@ -5,10 +5,13 @@
<script src="/static/moment.min.js" type="application/javascript"></script> <script src="/static/moment.min.js" type="application/javascript"></script>
<script src="/static/moment-timezone.min.js" type="application/javascript"></script> <script src="/static/moment-timezone.min.js" type="application/javascript"></script>
<script> <script>
var locale = window.navigator.userLanguage || window.navigator.language;
moment.locale(locale);
function format_timestamp(ts) { function format_timestamp(ts) {
var m = moment.utc(ts); var m = moment.utc(ts);
m.local(); m.local();
document.write(m.calendar()); document.write(m.format("L, LTS"));
} }
</script> </script>
{% endblock %} {% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment