This commit is contained in:
Christopher Cookman 2025-08-31 23:11:47 -06:00
parent 536b2321d0
commit c7874c19a6

View file

@ -88,7 +88,20 @@
<tr> <tr>
<td><%= log.Controller %></td> <td><%= log.Controller %></td>
<td><%= log.EventIndex %></td> <td><%= log.EventIndex %></td>
<td><%= log.Timestamp %></td> <td>
<%
const date = new Date(log.Timestamp);
const pad = n => n.toString().padStart(2, '0');
const yyyy = date.getFullYear();
const mm = pad(date.getMonth() + 1);
const dd = pad(date.getDate());
const HH = pad(date.getHours());
const MM = pad(date.getMinutes());
const ss = pad(date.getSeconds());
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
%>
<%= `${yyyy}-${mm}-${dd} ${HH}:${MM}:${ss} ${tz}` %>
</td>
<td><%= log.Type %></td> <td><%= log.Type %></td>
<td><%= log.Granted %></td> <td><%= log.Granted %></td>
<td><%= log.Door %></td> <td><%= log.Door %></td>