mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 00:02:37 +10:00
refactor: remove momentjs
This commit is contained in:
@ -68,7 +68,9 @@
|
||||
</ul>
|
||||
</td>
|
||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-zinc-400">
|
||||
{{ moment(client.lastConnected).fromNow() }}
|
||||
{{
|
||||
DateTime.fromISO(client.lastConnected).diffNow().toHuman()
|
||||
}}
|
||||
</td>
|
||||
<td
|
||||
class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-3"
|
||||
@ -91,7 +93,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CheckIcon } from "@heroicons/vue/24/outline";
|
||||
import moment from "moment";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
const clients = await $dropFetch("/api/v1/user/client");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user