fixed ssh key time
This commit is contained in:
parent
d8389993ce
commit
ed6fdcb049
1 changed files with 7 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td scope="row">{{user_key.name}}</td>
|
<td scope="row">{{user_key.name}}</td>
|
||||||
|
|
||||||
<td><span id="created_at">{{user_key.created_at|date:'Y-m-d H:i' }}</span></td>
|
<td><span id="ssh-created_at-{{user_key.id}}">{{user_key.created_at|date:'Y-m-d H:i' }}</span></td>
|
||||||
<td>
|
<td>
|
||||||
<span class="h3 label label-success"><strong>Active</strong></span>
|
<span class="h3 label label-success"><strong>Active</strong></span>
|
||||||
</td>
|
</td>
|
||||||
|
@ -95,9 +95,12 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
var locale_date = new Date(document.getElementById('created_at').textContent + ' UTC');
|
{% for user_key in keys %}
|
||||||
|
var locale_date = new Date(document.getElementById('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').innerHTML = locale_date;
|
document.getElementById('created_at-{{user_key.id}}').innerHTML = locale_date;
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue