diff --git a/frontend/src/lib/components/comptoir/transactionPopup.svelte b/frontend/src/lib/components/comptoir/transactionPopup.svelte index c019203..bac6735 100644 --- a/frontend/src/lib/components/comptoir/transactionPopup.svelte +++ b/frontend/src/lib/components/comptoir/transactionPopup.svelte @@ -157,6 +157,16 @@ newTransaction = structuredClone(transaction); }); } + + function formatTimestampToReadableDate(timestamp: number): string { + return new Date(timestamp).toLocaleTimeString('fr-FR', { + hour: '2-digit', + minute: '2-digit', + second: '2-digit' + }); + } + + let readableDate: string = formatTimestampToReadableDate(transaction.created_at*1000); {#if success != ''} @@ -188,8 +198,11 @@ - Close the popup -->
-

Commande de : {transaction.account_name}

-
+

Commande de : + {transaction.account_name} +

+

{readableDate}

+
{#each newTransaction.items as item, i}