summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-reserves-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
commitad5d54f48534ac0ad5bfd7f048bd7782e674a89b (patch)
tree4443e41c1aec412d82642b194aa3d837c9eb5cfd /src/backend/taler-merchant-httpd_private-get-reserves-ID.c
parent49e2e44b09dd845d0922c0acef5ff487b52bf26d (diff)
downloadmerchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.gz
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.bz2
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.zip
migration to protocol v11
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-reserves-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-reserves-ID.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-reserves-ID.c b/src/backend/taler-merchant-httpd_private-get-reserves-ID.c
index e0cee3a7..5b1481a7 100644
--- a/src/backend/taler-merchant-httpd_private-get-reserves-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-reserves-ID.c
@@ -70,8 +70,8 @@ struct GetReserveContext
*/
static void
handle_reserve_details (void *cls,
- struct GNUNET_TIME_Absolute creation_time,
- struct GNUNET_TIME_Absolute expiration_time,
+ struct GNUNET_TIME_Timestamp creation_time,
+ struct GNUNET_TIME_Timestamp expiration_time,
const struct TALER_Amount *merchant_initial_amount,
const struct TALER_Amount *exchange_initial_amount,
const struct TALER_Amount *picked_up_amount,
@@ -84,11 +84,6 @@ handle_reserve_details (void *cls,
{
struct GetReserveContext *ctx = cls;
json_t *tips_json;
- struct GNUNET_TIME_Absolute creation_time_round = creation_time;
- struct GNUNET_TIME_Absolute expiration_time_round = expiration_time;
-
- GNUNET_TIME_round_abs (&creation_time_round);
- GNUNET_TIME_round_abs (&expiration_time_round);
if (NULL != tips)
{
@@ -115,10 +110,10 @@ handle_reserve_details (void *cls,
ctx->res = TALER_MHD_REPLY_JSON_PACK (
ctx->connection,
MHD_HTTP_OK,
- GNUNET_JSON_pack_time_abs ("creation_time",
- creation_time_round),
- GNUNET_JSON_pack_time_abs ("expiration_time",
- expiration_time_round),
+ GNUNET_JSON_pack_timestamp ("creation_time",
+ creation_time),
+ GNUNET_JSON_pack_timestamp ("expiration_time",
+ expiration_time),
TALER_JSON_pack_amount ("merchant_initial_amount",
merchant_initial_amount),
TALER_JSON_pack_amount ("exchange_initial_amount",