From 9da0ac363eafe00d4be1a06b2a661efc3c08994b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 18 Dec 2024 09:29:06 +1030 Subject: [PATCH] xpay: created_at response from pay compatibility is a number, not integer. Reported-by: @hMsats Signed-off-by: Rusty Russell --- plugins/xpay/xpay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/xpay/xpay.c b/plugins/xpay/xpay.c index 2090f3bb52b9..e5fd9266f45d 100644 --- a/plugins/xpay/xpay.c +++ b/plugins/xpay/xpay.c @@ -387,7 +387,7 @@ static void payment_succeeded(struct payment *payment, json_add_pubkey(js, "destination", &payment->destination); json_add_sha256(js, "payment_hash", &payment->payment_hash); json_add_string(js, "status", "complete"); - json_add_u64(js, "created_at", (u64)payment->start_time.ts.tv_sec); + json_add_timeabs(js, "created_at", payment->start_time); } else { json_add_u64(js, "failed_parts", payment->num_failures); json_add_u64(js, "successful_parts",