mirror of https://github.com/CIRCL/lookyloo
chg: Improve rendering capture time
parent
1f5d572224
commit
03bf7888e8
|
@ -161,8 +161,7 @@
|
||||||
var parent_uuid = {{ parent_uuid|tojson }};
|
var parent_uuid = {{ parent_uuid|tojson }};
|
||||||
var capture_starttime = new Date(Date.parse("{{ info.timestamp.isoformat() }}"));
|
var capture_starttime = new Date(Date.parse("{{ info.timestamp.isoformat() }}"));
|
||||||
window.addEventListener('DOMContentLoaded', (event) => {
|
window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
document.getElementById("start_time").innerHTML =
|
document.getElementById("start_time").innerHTML = capture_starttime.toString();
|
||||||
`${capture_starttime.getFullYear()}-${("0" + (capture_starttime.getMonth() + 1)).slice(-2)}-${("0" + capture_starttime.getDate()).slice(-2)} ${capture_starttime.toLocaleTimeString()}`;
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue