diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 23:37:57 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 23:37:57 -0800 |
| commit | 68684395a080a834d823b39e2e9641372bbafbfd (patch) | |
| tree | d9a02ed31ef3be0fe7c274b08597271e7dac8f15 /src/components/Payments.svelte | |
| parent | 97fffca3e63e2edb4818305abdbcbb8953344aa3 (diff) | |
| download | coinos-ui-68684395a080a834d823b39e2e9641372bbafbfd.tar.gz coinos-ui-68684395a080a834d823b39e2e9641372bbafbfd.zip | |
dependency audit
Diffstat (limited to 'src/components/Payments.svelte')
| -rw-r--r-- | src/components/Payments.svelte | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte index 881da11d..2ebe9794 100644 --- a/src/components/Payments.svelte +++ b/src/components/Payments.svelte @@ -3,10 +3,8 @@ import LogosBitcoin from "virtual:icons/logos/bitcoin"; import { goto } from "$app/navigation"; import Avatar from "$comp/Avatar.svelte"; - import { get, f, s, si, sat, loc, sats, types } from "$lib/utils"; - import { format } from "date-fns"; + import { get, f, s, si, sat, loc, sats, types, formatDate } from "$lib/utils"; import { t } from "$lib/translations"; - import locales from "$lib/locales"; import { fiat } from "$lib/store"; const { fund = undefined, locale, user, payments }: any = $props(); const language = $derived(user?.language || "en"); @@ -102,14 +100,10 @@ <div class="text-secondary text-right text-sm my-auto col-span-3"> <div> - {format(new Date(p.created), "MMM d, yy", { - locale: locales[language], - })} + {formatDate(new Date(p.created), language, { month: "short", day: "numeric", year: "2-digit" })} </div> <div> - {format(new Date(p.created), "h:mm aaa", { - locale: locales[language], - })} + {formatDate(new Date(p.created), language, { hour: "numeric", minute: "2-digit" })} </div> </div> </div> |
