aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payments
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-22 11:21:15 -0700
committerAdam Soltys <[email protected]>2024-10-22 11:21:15 -0700
commit0afb0f84ba19a6e8d7dfed602ae402c3f96872ef (patch)
tree13fb132fbb3904db3d1f801ad46fdfd62eb0757f /src/routes/(app)/payments
parent4d37025030258fe8af376d1a172b2fd6bc74f805 (diff)
downloadcoinos-ui-0afb0f84ba19a6e8d7dfed602ae402c3f96872ef.tar.gz
coinos-ui-0afb0f84ba19a6e8d7dfed602ae402c3f96872ef.zip
international dates
Diffstat (limited to 'src/routes/(app)/payments')
-rw-r--r--src/routes/(app)/payments/[...page]/+page.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte
index e781409f..55e6c914 100644
--- a/src/routes/(app)/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/payments/[...page]/+page.svelte
@@ -9,10 +9,11 @@
import { page } from "$app/stores";
import { differenceInDays, getUnixTime, sub } from "date-fns";
import { goto, invalidate } from "$app/navigation";
-
+ import locales from "$lib/locales";
export let data;
let { start, end, user, rates, payments } = data;
+ let locale = locales[user.language];
let change = ({ target: { value } }) => goto(value);
let link = (p) => {
@@ -246,10 +247,10 @@
<div class="text-secondary text-right text-sm my-auto col-span-3">
<div>
- {format(new Date(p.created), "h:mm aaa")}
+ {format(new Date(p.created), "h:mm aaa", { locale })}
</div>
<div>
- {format(new Date(p.created), "MMM d, yy")}
+ {format(new Date(p.created), "MMM d, yy", { locale })}
</div>
</div>
</div>