From 335d22b12b3d8ed1a14d39bf8ca17faade9ca34c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 10 Jan 2023 17:11:34 -0300 Subject: when as number instead of string, fix codec used before declaration, pretty --- packages/taler-wallet-core/src/operations/pay-merchant.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index 586f2638f..0360f7395 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1822,7 +1822,7 @@ export async function processPurchase( errorDetail: { // FIXME: allocate more specific error code code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, - when: new Date().toISOString(), + when: AbsoluteTime.now(), hint: `trying to pay for purchase that is not in the database`, proposalId: proposalId, }, @@ -1873,7 +1873,7 @@ export async function processPurchasePay( errorDetail: { // FIXME: allocate more specific error code code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, - when: new Date().toISOString(), + when: AbsoluteTime.now(), hint: `trying to pay for purchase that is not in the database`, proposalId: proposalId, }, @@ -1952,7 +1952,7 @@ export async function processPurchasePay( await scheduleRetry(ws, RetryTags.forPay(purchase), { code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, - when: new Date().toISOString(), + when: AbsoluteTime.now(), message: "unexpected exception", hint: "unexpected exception", details: { -- cgit v1.2.3