summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_merchant_get_order.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:31 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:31 +0200
commitd37e16a76c32e83407f5ea71e572cc5469a58924 (patch)
tree0bb4849ae69ccbc94ae7424014ac9abe0d8d16d5 /src/lib/merchant_api_merchant_get_order.c
parentf82923526d6f7f688677b15f416a3b41f9feff2b (diff)
downloadmerchant-d37e16a76c32e83407f5ea71e572cc5469a58924.tar.gz
merchant-d37e16a76c32e83407f5ea71e572cc5469a58924.tar.bz2
merchant-d37e16a76c32e83407f5ea71e572cc5469a58924.zip
fix #6408 also in merchant: in principle only allow rounded times over JSON
Diffstat (limited to 'src/lib/merchant_api_merchant_get_order.c')
-rw-r--r--src/lib/merchant_api_merchant_get_order.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c
index edd00f7a..53811ec1 100644
--- a/src/lib/merchant_api_merchant_get_order.c
+++ b/src/lib/merchant_api_merchant_get_order.c
@@ -198,8 +198,8 @@ handle_paid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh,
&wt->exchange_url),
GNUNET_JSON_spec_fixed_auto ("wtid",
&wt->wtid),
- GNUNET_JSON_spec_absolute_time ("execution_time",
- &wt->execution_time),
+ TALER_JSON_spec_absolute_time ("execution_time",
+ &wt->execution_time),
TALER_JSON_spec_amount ("amount",
&wt->total_amount),
GNUNET_JSON_spec_bool ("confirmed",
@@ -273,8 +273,8 @@ handle_paid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh,
&ro->refund_amount),
GNUNET_JSON_spec_string ("reason",
&ro->reason),
- GNUNET_JSON_spec_absolute_time ("timestamp",
- &ro->refund_time),
+ TALER_JSON_spec_absolute_time ("timestamp",
+ &ro->refund_time),
GNUNET_JSON_spec_end ()
};