From a9713beff7d5f4ac4017310396e23be7e3bfed61 Mon Sep 17 00:00:00 2001
From: Mel <einebeere@gmail.com>
Date: Sat, 19 Feb 2022 20:23:02 +0100
Subject: Fix trimmed off 0 in minute in Request

---
 assets/src/components/share/Request.svelte | 5 ++++-
 1 file changed, 4 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 40a62fc..95a6e20 100644
--- a/assets/src/components/share/Request.svelte
+++ b/assets/src/components/share/Request.svelte
@@ -8,7 +8,10 @@
     export let request: IncomingRequest;
     const state = request.state;
 
-    const time = `${request.info.receivedAt.getHours()}:${request.info.receivedAt.getMinutes()}`;
+    const time = request.info.receivedAt.toLocaleTimeString([], {
+        hour: "numeric",
+        minute: "numeric",
+    });
 
     async function accept() {
         const sharing = getShareState().state as Sharing;
-- 
cgit 1.4.1

