summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-13 17:11:46 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-13 17:11:46 +0200
commit1ea833b91a139d163e7d041aede4eefe7789ff83 (patch)
treee9fe2281aa551b40c3e12eb793ef210d162a60d9
parenta52bfbf206ccdb18f6c736c492aec3698ac7b1a9 (diff)
update REST API
-rw-r--r--src/escrow/plugin_rest_escrow.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/escrow/plugin_rest_escrow.c b/src/escrow/plugin_rest_escrow.c
index 0453da1fe..796578dd6 100644
--- a/src/escrow/plugin_rest_escrow.c
+++ b/src/escrow/plugin_rest_escrow.c
@@ -1026,14 +1026,12 @@ get_escrow_status (struct GNUNET_REST_RequestHandle *con_handle,
GNUNET_ESCROW_method_number_to_string (status->last_method)));
json_object_set_new (json_status,
GNUNET_REST_ESCROW_PARAM_LAST_VERIF,
- json_string (
- GNUNET_STRINGS_absolute_time_to_string (
- status->last_successful_verification_time)));
+ json_integer (
+ status->last_successful_verification_time.abs_value_us / 1000));
json_object_set_new (json_status,
GNUNET_REST_ESCROW_PARAM_NEXT_VERIF,
- json_string (
- GNUNET_STRINGS_absolute_time_to_string (
- status->next_recommended_verification_time)));
+ json_integer (
+ status->next_recommended_verification_time.abs_value_us / 1000));
}
result_string = json_dumps (json_status, 0);