[O] Format date

This commit is contained in:
Azalea Gui
2023-02-09 18:40:18 -05:00
parent ee5e054d94
commit 5e3cbdb1ea
+2 -1
View File
@@ -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() {
<span class="text-right basis-30">{f.size}</span>
</Show>
<span class="text-right basis-30 select-none">
{f.mtime}
{moment(f.mtime).fromNow()}
</span>
</span>
}</For>