From 5e3cbdb1ea832c3a1b54261ab435363f337259f9 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 9 Feb 2023 18:40:18 -0500 Subject: [PATCH] [O] Format date --- src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 65e6990..2891f9e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,4 @@ +import moment from 'moment'; import { Component, createResource, createSignal, For, lazy, Show } from 'solid-js'; const host = "https://daisy-ddns.hydev.org/data/api/OS" @@ -19,7 +20,7 @@ export default function App() { {f.size} - {f.mtime} + {moment(f.mtime).fromNow()} }