From 22f7cc38531177110e5d2575e1cc979333ec11f4 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 1 Sep 2025 00:08:47 -0600 Subject: [PATCH] Reformat dates --- views/acl.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/acl.ejs b/views/acl.ejs index de8036f..3427ba2 100644 --- a/views/acl.ejs +++ b/views/acl.ejs @@ -63,8 +63,8 @@ <%= row.Name %> <%= row.CardNumber %> <%= row.PIN %> - <%= row.StartDate ? row.StartDate.substring(0, 10) : '' %> - <%= row.EndDate ? row.EndDate.substring(0, 10) : '' %> + <%= row.StartDate ? new Date(row.StartDate).toISOString().slice(0,10) : '' %> + <%= row.EndDate ? new Date(row.EndDate).toISOString().slice(0,10) : '' %> <% doors.forEach(function(door) { %> <% if (row[door]) { %>