fixed time

This commit is contained in:
Levi 2017-06-21 12:49:29 -05:00
parent ed6fdcb049
commit f1f6074c78

View file

@ -93,17 +93,23 @@
</script> </script>
{% endif %} {% endif %}
<script type="text/javascript"> <script type="text/javascript">
console.log("sadas");
window.onload = function () { window.onload = function () {
{% for user_key in keys %} {% for user_key in keys %}
var locale_date = new Date(document.getElementById('created_at-{{user_key.id}}').textContent + ' UTC'); console.log("{{user_key.id}}");
var locale_date = new Date(document.getElementById("ssh-created_at-{{user_key.id}}").textContent + ' UTC');
locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a"); locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a");
document.getElementById('created_at-{{user_key.id}}').innerHTML = locale_date; console.log(locale_date);
document.getElementById('ssh-created_at-{{user_key.id}}').innerHTML = locale_date;
{% endfor %} {% endfor %}
}; };
</script> </script>
{%endblock%} {%endblock%}