Test
This commit is contained in:
parent
536b2321d0
commit
c7874c19a6
|
@ -88,7 +88,20 @@
|
|||
<tr>
|
||||
<td><%= log.Controller %></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.Granted %></td>
|
||||
<td><%= log.Door %></td>
|
||||
|
|
Loading…
Reference in a new issue