From d0019ce31562c55b71489f701077bbf7ae8c00d8 Mon Sep 17 00:00:00 2001 From: Mikkel ALMONTE--RINGAUD Date: Wed, 6 Nov 2024 00:28:24 +0100 Subject: [PATCH] fix(qr): use `en-CA` instead of `fr-CA` because it is inconsistent --- src/api/qr-pay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/qr-pay.ts b/src/api/qr-pay.ts index 7988d18..c9a26b7 100644 --- a/src/api/qr-pay.ts +++ b/src/api/qr-pay.ts @@ -60,7 +60,7 @@ const sign = (content: string, keyInfo: string): Uint8Array => { */ export const qrPay = (identification: Identification): string => { // Replicate `SimpleDateFormat("yyyy-MM-dd HH:mm:ss")` - const dateFormatter = new Intl.DateTimeFormat("fr-CA", { timeZone: "UTC", year: "numeric", month: "2-digit", day: "2-digit", hour12: false, second: "2-digit", minute: "2-digit", hour: "2-digit" }); + const dateFormatter = new Intl.DateTimeFormat("en-CA", { timeZone: "UTC", year: "numeric", month: "2-digit", day: "2-digit", hour12: false, second: "2-digit", minute: "2-digit", hour: "2-digit" }); const date = dateFormatter.format(new Date()).replace(",", ""); const hotpCode = otp(identification);