diff options
| author | Adam Soltys <[email protected]> | 2024-10-22 11:21:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-22 11:21:15 -0700 |
| commit | 0afb0f84ba19a6e8d7dfed602ae402c3f96872ef (patch) | |
| tree | 13fb132fbb3904db3d1f801ad46fdfd62eb0757f /src/routes/(app)/payment | |
| parent | 4d37025030258fe8af376d1a172b2fd6bc74f805 (diff) | |
| download | coinos-ui-0afb0f84ba19a6e8d7dfed602ae402c3f96872ef.tar.gz coinos-ui-0afb0f84ba19a6e8d7dfed602ae402c3f96872ef.zip | |
international dates
Diffstat (limited to 'src/routes/(app)/payment')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index f7a36717..d49a3cb2 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -17,9 +17,12 @@ import Icon from "$comp/Icon.svelte"; import { format } from "date-fns"; import { PUBLIC_EXPLORER, PUBLIC_LIQUID_EXPLORER } from "$env/static/public"; + import locales from "$lib/locales"; export let data; let { user, payment: p } = data; + let locale = locales[user.language]; + $: refresh(data); let refresh = (d) => { ({ user, payment: p } = d); @@ -180,8 +183,8 @@ <div> <span class="text-lg text-secondary">{$t("payments.date")}</span> <div> - {format(new Date(created), "h:mmaaa")} - {format(new Date(created), "MMM d, yyyy")} + {format(new Date(created), "h:mmaaa", { locale })} + {format(new Date(created), "MMM d, yyyy", { locale })} </div> </div> |
