From 76b9da8bd3d51300c00eed45aef43db1c595d71f Mon Sep 17 00:00:00 2001
From: Parker <contact@pkrm.dev>
Date: Sat, 16 Nov 2024 00:28:25 -0600
Subject: Smaller log text + transform date

---
 app/src/components/Dashboard.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'app/src/components/Dashboard.tsx')

diff --git a/app/src/components/Dashboard.tsx b/app/src/components/Dashboard.tsx
index d2bca9e..d699efb 100644
--- a/app/src/components/Dashboard.tsx
+++ b/app/src/components/Dashboard.tsx
@@ -175,7 +175,7 @@ function Dashboard() {
                     {logs.filter((log) => log.link === link.link).length || 0}
                   </td>
                   <td>{link.redirect_link}</td>
-                  <td>{link.expire_date}</td>
+                  <td>{new Date(link.expire_date).toLocaleDateString()}</td>
                 </tr>
 
                 {/* Conditionally render logs for this link */}
@@ -199,7 +199,15 @@ function Dashboard() {
                             .map((log, index, filteredLogs) => (
                               <tr key={log.id}>
                                 <td>{filteredLogs.length - index}</td>
-                                <td>{log.timestamp}</td>
+                                <td>
+                                  {new Date(
+                                    log.timestamp
+                                  ).toLocaleTimeString() +
+                                    ', ' +
+                                    new Date(
+                                      log.timestamp
+                                    ).toLocaleDateString()}
+                                </td>
                                 <td>{log.ip}</td>
                                 <td>{log.location}</td>
                                 <td>{log.isp}</td>
-- 
cgit v1.2.3-70-g09d2

