Skip to content

Commit

Permalink
fix(qr): use en-CA instead of fr-CA because it is inconsistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Nov 5, 2024
1 parent 04b911c commit d0019ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/qr-pay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d0019ce

Please sign in to comment.