From eaae33dc2d825ad77f3f43ba0b94b55595a9c784 Mon Sep 17 00:00:00 2001
From: Melonai <einebeere@gmail.com>
Date: Mon, 16 Aug 2021 14:43:10 +0200
Subject: Show the time at which request was received

---
 assets/src/components/share/Request.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'assets/src/components/share/Request.svelte')

diff --git a/assets/src/components/share/Request.svelte b/assets/src/components/share/Request.svelte
index 5f9ca7a..a5e77e7 100644
--- a/assets/src/components/share/Request.svelte
+++ b/assets/src/components/share/Request.svelte
@@ -11,6 +11,8 @@
     export let request: IncomingRequest;
     const state = request.state;
 
+    const time = `${request.info.receivedAt.getHours()}:${request.info.receivedAt.getMinutes()}`;
+
     async function accept() {
         acceptIncomingRequest(request);
     }
@@ -33,7 +35,7 @@
         </div>
     {/if}
 
-    <li>Requested at 14:38</li>
+    <li>Requested at {time}</li>
     <li class="ip">{request.info.token}</li>
     <li>Trusowo, Russia</li>
     <li>Firefox 89</li>
-- 
cgit 1.4.1

