diff --git a/views/acl.ejs b/views/acl.ejs index ff4804e..de8036f 100644 --- a/views/acl.ejs +++ b/views/acl.ejs @@ -63,8 +63,8 @@ <%= row.Name %> <%= row.CardNumber %> <%= row.PIN %> - <%= row.StartDate %> - <%= row.EndDate %> + <%= row.StartDate ? row.StartDate.substring(0, 10) : '' %> + <%= row.EndDate ? row.EndDate.substring(0, 10) : '' %> <% doors.forEach(function(door) { %> <% if (row[door]) { %>