diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 21:54:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 21:54:11 +0200 |
commit | 54e63f01df85ee0470493c6d0de29576ce3371c4 (patch) | |
tree | 174ef13378081c4845a9f0adc52bcac97674aff2 /src/bank-lib/bank_api_credit.c | |
parent | 6de49ea2c02e311e5f5366005bd3497a9bb25187 (diff) |
fix #6408: make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client
Diffstat (limited to 'src/bank-lib/bank_api_credit.c')
-rw-r--r-- | src/bank-lib/bank_api_credit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c index 33f66b48f..8eba7f5f9 100644 --- a/src/bank-lib/bank_api_credit.c +++ b/src/bank-lib/bank_api_credit.c @@ -90,8 +90,8 @@ parse_account_history (struct TALER_BANK_CreditHistoryHandle *hh, struct GNUNET_JSON_Specification hist_spec[] = { TALER_JSON_spec_amount ("amount", &td.amount), - GNUNET_JSON_spec_absolute_time ("date", - &td.execution_date), + TALER_JSON_spec_absolute_time ("date", + &td.execution_date), GNUNET_JSON_spec_uint64 ("row_id", &row_id), GNUNET_JSON_spec_fixed_auto ("reserve_pub", |