From c7874c19a6c87489f9334c0b0d724770179e62a2 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 31 Aug 2025 23:11:47 -0600 Subject: [PATCH] Test --- views/event-logs.ejs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/views/event-logs.ejs b/views/event-logs.ejs index d6d0a48..0cf148f 100644 --- a/views/event-logs.ejs +++ b/views/event-logs.ejs @@ -88,7 +88,20 @@ <%= log.Controller %> <%= log.EventIndex %> - <%= log.Timestamp %> + + <% + 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}` %> + <%= log.Type %> <%= log.Granted %> <%= log.Door %>