aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts')
-rw-r--r--packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts b/packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts
index 22cfd1e17..d80401129 100644
--- a/packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts
+++ b/packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts
@@ -28,7 +28,7 @@ const defaultContractTerms: MerchantBackend.ContractTerms = {
amount: 'USD:10',
summary: 'this is a short summary',
pay_deadline: {
- t_s: new Date().getTime() + 6 * 24 * 60 * 60 * 1000
+ t_s: Math.round(new Date().getTime() / 1000) + 6 * 24 * 60 * 60
},
merchant: {
name: 'the merchant (inc)',
@@ -48,7 +48,7 @@ const defaultContractTerms: MerchantBackend.ContractTerms = {
wire_fee_amortization: 1,
products: [],
timestamp: {
- t_s: new Date().getTime()
+ t_s: Math.round(new Date().getTime() / 1000)
},
auditors: [],
exchanges: [],
@@ -57,18 +57,18 @@ const defaultContractTerms: MerchantBackend.ContractTerms = {
merchant_pub: 'QWEASDQWEASD',
nonce: 'NONCE',
refund_deadline: {
- t_s: new Date().getTime() + 6 * 24 * 60 * 60 * 1000
+ t_s: Math.round(new Date().getTime() / 1000) + 6 * 24 * 60 * 60
},
wire_method: 'x-taler-bank',
wire_transfer_deadline: {
- t_s: new Date().getTime() + 3 * 24 * 60 * 60 * 1000
+ t_s: Math.round(new Date().getTime() / 1000) + 3 * 24 * 60 * 60
},
};
-const inSixDays = new Date().getTime() + 6 * 24 * 60 * 60 * 1000
-const in10Minutes = new Date().getTime() + 10 * 60 * 1000
-const in15Minutes = new Date().getTime() + 15 * 60 * 1000
-const in20Minutes = new Date().getTime() + 20 * 60 * 1000
+const inSixDays = Math.round(new Date().getTime() / 1000) + 6 * 24 * 60 * 60
+const in10Minutes = Math.round(new Date().getTime() / 1000) + 10 * 60
+const in15Minutes = Math.round(new Date().getTime() / 1000) + 15 * 60
+const in20Minutes = Math.round(new Date().getTime() / 1000) + 20 * 60
export const exampleData: { [name: string]: Props } = {
Simplest: {